netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] bnx2x: fail when try to setup unsupported features
@ 2010-06-28  9:28 Stanislaw Gruszka
  2010-06-28 11:07 ` Eilon Greenstein
  2010-06-29  7:55 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Stanislaw Gruszka @ 2010-06-28  9:28 UTC (permalink / raw)
  To: netdev; +Cc: Amerigo Wang, Eilon Greenstein

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
 drivers/net/bnx2x_main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 57ff5b3..0809f6c 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -10982,6 +10982,9 @@ static int bnx2x_set_flags(struct net_device *dev, u32 data)
 	int changed = 0;
 	int rc = 0;
 
+	if (data & ~(ETH_FLAG_LRO | ETH_FLAG_RXHASH))
+		return -EOPNOTSUPP;
+
 	if (bp->recovery_state != BNX2X_RECOVERY_DONE) {
 		printk(KERN_ERR "Handling parity error recovery. Try again later\n");
 		return -EAGAIN;
-- 
1.5.5.6


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-29  7:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-28  9:28 [PATCH -next] bnx2x: fail when try to setup unsupported features Stanislaw Gruszka
2010-06-28 11:07 ` Eilon Greenstein
2010-06-29  7:55 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).