]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Set ethtool ops for vfs
authorAriel Elior <ariele@broadcom.com>
Mon, 11 Mar 2013 05:17:42 +0000 (05:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2013 11:54:21 +0000 (07:54 -0400)
commitd1c25940efedfa3061ed82600a9b28ee20eb27e8
tree43fc25465702801b85a1749ffa8ecf37ec62a2e6
parent49416e9a6bf1f5b904e8b7876787c6461acc8931
bnx2x: Set ethtool ops for vfs

Virtual functions don't have access to HW registers, therefore most ethtool ops
are forbidden to them. Instead of checking in each op whether the device being
driven is a virtual function or a physical function, this patch creates a
separate ethtool ops struct for virtual functions and uses it to initialize
the ethtool ops of the driver in case it is driving a virtual function device.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c