diff options
author | Ronak Doshi <[email protected]> | 2018-04-18 12:48:04 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-04-19 13:59:05 -0400 |
commit | 65ec0bd1c7c14522670a5294de35710fb577a7fd (patch) | |
tree | d2735aa7d11a3b1032bed6d1e0d7137e31bbc3de /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f7e43672683b097bb074a8fe7af9bc600a23f231 (diff) |
vmxnet3: fix incorrect dereference when rxvlan is disabled
vmxnet3_get_hdr_len() is used to calculate the header length which in
turn is used to calculate the gso_size for skb. When rxvlan offload is
disabled, vlan tag is present in the header and the function references
ip header from sizeof(ethhdr) and leads to incorrect pointer reference.
This patch fixes this issue by taking sizeof(vlan_ethhdr) into account
if vlan tag is present and correctly references the ip hdr.
Signed-off-by: Ronak Doshi <[email protected]>
Acked-by: Guolin Yang <[email protected]>
Acked-by: Louis Luo <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions