bnx2/bnx2x: Unsupported Ethtool operations should return -EINVAL.
authorJesse Gross <jesse@nicira.com>
Thu, 21 Oct 2010 11:30:43 +0000 (11:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Oct 2010 02:59:32 +0000 (19:59 -0700)
commitec37a48d1d16c30b655ac5280209edf52a6775d4
treede483247d7febde004678ef5f7ee2806b2ba90df
parent0988c4c7fb5881377ec20a6452f739a722e97c6b
bnx2/bnx2x: Unsupported Ethtool operations should return -EINVAL.

Some cards don't support changing vlan offloading settings.  Make
Ethtool set_flags return -EINVAL in those cases.

Reported-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c
drivers/net/bnx2x/bnx2x_ethtool.c