Commit a7ffa289 authored by Rajesh Borundia's avatar Rajesh Borundia Committed by David S. Miller

netxen: Fix vhdr_len in case of non vlan packets.

o Set vlan header length to zero.
Signed-off-by: default avatarRajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d24f22f3
...@@ -1620,7 +1620,7 @@ netxen_process_lro(struct netxen_adapter *adapter, ...@@ -1620,7 +1620,7 @@ netxen_process_lro(struct netxen_adapter *adapter,
int index; int index;
u16 lro_length, length, data_offset; u16 lro_length, length, data_offset;
u32 seq_number; u32 seq_number;
u8 vhdr_len; u8 vhdr_len = 0;
if (unlikely(ring > adapter->max_rds_rings)) if (unlikely(ring > adapter->max_rds_rings))
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment