From: Ariel Elior Date: Mon, 11 Mar 2013 05:17:42 +0000 (+0000) Subject: bnx2x: Set ethtool ops for vfs X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~501 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=005a07baa1713861a060fab66a3d7d91f8d759c6;p=pandora-kernel.git 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 Signed-off-by: Yuval Mintz Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- Reading git-diff-tree failed