lkml.org 
[lkml]   [2017]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net 20/20] net/hinic: Add ethtool and stats
On Wed, Jul 12, 2017 at 10:17:26PM +0800, Aviad Krawczyk wrote:

Hi Avaid

> +
> +static void hinic_tx_timeout(struct net_device *netdev)
> +{
> + struct hinic_dev *nic_dev = netdev_priv(netdev);
> +
> + netif_err(nic_dev, drv, netdev, "Tx timeout\n");
> +}
> +
> +#ifdef CONFIG_NET_POLL_CONTROLLER
> +static void hinic_netpoll(struct net_device *netdev)
> +{
> + struct hinic_dev *nic_dev = netdev_priv(netdev);
> + struct hinic_hwdev *hwdev = nic_dev->hwdev;
> + int i, num_qps = hinic_hwdev_num_qps(hwdev);
> +
> + for (i = 0; i < num_qps; i++) {
> + struct hinic_txq *txq = &nic_dev->txqs[i];
> + struct hinic_rxq *rxq = &nic_dev->rxqs[i];
> +
> + napi_schedule(&txq->napi);
> + napi_schedule(&rxq->napi);
> + }
> +}
> +#endif

This has nothing to do with ethtool support. Separate patch please.

Andrew

\
 
 \ /
  Last update: 2017-07-12 17:43    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog