bnx2: Always set ETH_FLAG_TXVLAN
Subsystems (2)
PATCH 1/1 bnx2: Always set ETH_FLAG_TXVLAN
TSO does not work if the VLAN tag is in the packet (non-accelerated). We may be able to remove this restriction in future firmware.
Reported-by Eric Dumazet <[email protected]>
Signed-off-by Michael Chan <[email protected]>
--- drivers/net/bnx2.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/net/bnx2.c +4 -0
@@ -7553,6 +7553,10 @@ bnx2_set_flags(struct net_device *dev, u32 data) !(data & ETH_FLAG_RXVLAN))return -EINVAL ; +/* TSO with VLAN tag won't work with current firmware */ +if (!(data Ð_FLAG_TXVLAN )) +return -EINVAL ; + rc =ethtool_op_set_flags (dev, data,ETH_FLAG_RXHASH |ETH_FLAG_RXVLAN |ETH_FLAG_TXVLAN );if (rc)
Signature · 1 line
1.6.4.GIT
From: "Michael Chan" <[email protected]>
Date: Mon, 24 Jan 2011 14:59:02 -0800
Quoted 5 lines
TSO does not work if the VLAN tag is in the packet (non-accelerated). We may be able to remove this restriction in future firmware.
Reported-by Eric Dumazet <[email protected]>Signed-off-by Michael Chan <[email protected]>
Applied, thanks.