diff options
author | Mahesh Bandewar <maheshb@google.com> | 2011-05-13 17:08:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-16 19:51:45 +0200 |
commit | 538dd2e3976a7c572ee927d6bbebe01bf4d6f128 (patch) | |
tree | f65529f5de1bf3c3edece04684311e78f2fcd8ab /drivers/net/bnx2x/bnx2x_main.c | |
parent | ipv4: Trivial rt->rt_src conversions in net/ipv4/route.c (diff) | |
download | linux-538dd2e3976a7c572ee927d6bbebe01bf4d6f128.tar.xz linux-538dd2e3976a7c572ee927d6bbebe01bf4d6f128.zip |
bnx2x: Allow ethtool to enable/disable loopback.
This patch updates the bnx2x_set_features() to handle loopback mode.
When enabled; it sets internal-MAC loopback.
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c index 2762edf956e9..f45c0caf3240 100644 --- a/drivers/net/bnx2x/bnx2x_main.c +++ b/drivers/net/bnx2x/bnx2x_main.c @@ -9273,6 +9273,9 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev, if (bp->flags & USING_DAC_FLAG) dev->features |= NETIF_F_HIGHDMA; + /* Add Loopback capability to the device */ + dev->hw_features |= NETIF_F_LOOPBACK; + #ifdef BCM_DCBNL dev->dcbnl_ops = &bnx2x_dcbnl_ops; #endif |