From: Stanislaw Gruszka Date: Sun, 27 Jun 2010 23:28:11 +0000 (+0000) Subject: bnx2x: fail when try to setup unsupported features X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0d904ffd052930504913fb105dd25764f5f0bd8;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git bnx2x: fail when try to setup unsupported features Signed-off-by: Stanislaw Gruszka Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 57ff5b3bcce6..0809f6cfbd1a 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;