]> git.baikalelectronics.ru Git - kernel.git/commit
sunvnet: Initialize network_header and transport_header in vnet_rx_one()
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Mon, 18 Jan 2016 21:12:09 +0000 (16:12 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jan 2016 19:48:15 +0000 (14:48 -0500)
commitef8cb8133a223d897c12085dd823298264dbffcf
treef8e40bdf525947c716de00fbf676fcbaf95e453b
parent150808a804992d01f4030cd3beb0a01a579d3508
sunvnet: Initialize network_header and transport_header in vnet_rx_one()

vnet_fullcsum() accesses ip_hdr() and transport header to compute
the checksum for IPv4 packets, so these need to be initialized in
skb created in vnet_rx_one().

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunvnet.c