diff options
author | Hao Zheng <[email protected]> | 2010-11-11 13:47:59 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2010-11-12 12:30:58 -0800 |
commit | 5e09a10521681fe7808b1c4911a6d9c7fee55f82 (patch) | |
tree | 96f4e50a9a55ed84a6a5589c30e3c9b192a8f91b /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | d0d9d8ef5949551276f635cb04969184ba1a9553 (diff) |
ixgbe: Look inside vlan when determining offload protocol.
Currently the skb->protocol field is used to setup various
offloading parameters on transmit for the correct protocol.
However, if vlan offloading is disabled or otherwise not used,
the protocol field will be ETH_P_8021Q, not the actual protocol.
This will cause the offloading to be not performed correctly,
even though the hardware is capable of looking inside vlan tags.
Instead, look inside the header if necessary to determine the
correct protocol type.
To some extent this fixes a regression from 2.6.36 because it
was previously not possible to disable vlan offloading and this
error case was not exposed.
Signed-off-by: Hao Zheng <[email protected]>
CC: Jeff Kirsher <[email protected]>
CC: Alex Duyck <[email protected]>
CC: Jesse Brandeburg <[email protected]>
Signed-off-by: Jesse Gross <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions