RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-17 Thread Salil Mehta
.org; linux- > ker...@vger.kernel.org; Linuxarm > Subject: RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 > Ethernet Driver for hip08 SoC > > > > > +static void hns3_nic_net_down(struct net_device *ndev) { > > > > + struct hns3_nic_priv *priv = netde

RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-17 Thread Salil Mehta
.org; linux- > ker...@vger.kernel.org; Linuxarm > Subject: RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 > Ethernet Driver for hip08 SoC > > > > > +static void hns3_nic_net_down(struct net_device *ndev) { > > > > + struct hns3_nic_priv *priv = netde

RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-14 Thread Mintz, Yuval
> > > +static void hns3_nic_net_down(struct net_device *ndev) { > > > + struct hns3_nic_priv *priv = netdev_priv(ndev); > > > + struct hnae3_ae_ops *ops; > > > + int i; > > > + > > > + netif_tx_stop_all_queues(ndev); > > > + netif_carrier_off(ndev); > > > + netif_tx_disable(ndev); > > > + > > > +

RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-14 Thread Mintz, Yuval
> > > +static void hns3_nic_net_down(struct net_device *ndev) { > > > + struct hns3_nic_priv *priv = netdev_priv(ndev); > > > + struct hnae3_ae_ops *ops; > > > + int i; > > > + > > > + netif_tx_stop_all_queues(ndev); > > > + netif_carrier_off(ndev); > > > + netif_tx_disable(ndev); > > > + > > > +

RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-13 Thread Salil Mehta
.org; linux- > ker...@vger.kernel.org; Linuxarm > Subject: RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 > Ethernet Driver for hip08 SoC > > > +static void hns3_nic_net_down(struct net_device *ndev) { > > + struct hns3_nic_priv *priv = netdev_priv(ndev); >

RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-13 Thread Salil Mehta
.org; linux- > ker...@vger.kernel.org; Linuxarm > Subject: RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 > Ethernet Driver for hip08 SoC > > > +static void hns3_nic_net_down(struct net_device *ndev) { > > + struct hns3_nic_priv *priv = netdev_priv(ndev); >

RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-10 Thread Mintz, Yuval
> +static void hns3_nic_net_down(struct net_device *ndev) { > + struct hns3_nic_priv *priv = netdev_priv(ndev); > + struct hnae3_ae_ops *ops; > + int i; > + > + netif_tx_stop_all_queues(ndev); > + netif_carrier_off(ndev); > + netif_tx_disable(ndev); > + > + ops =

RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-10 Thread Mintz, Yuval
> +static void hns3_nic_net_down(struct net_device *ndev) { > + struct hns3_nic_priv *priv = netdev_priv(ndev); > + struct hnae3_ae_ops *ops; > + int i; > + > + netif_tx_stop_all_queues(ndev); > + netif_carrier_off(ndev); > + netif_tx_disable(ndev); > + > + ops =