]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'gso_type'
authorDavid S. Miller <davem@davemloft.net>
Mon, 11 Feb 2013 01:14:46 +0000 (20:14 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Feb 2013 01:14:46 +0000 (20:14 -0500)
commit1b855f81e948803ac424973bd414f8856ab6701b
treed7b0904cf9f44ab1fa5caaca7ba912ad0e944c9e
parent36f4d3a6690fcf05ab588947e5d6dca0878a9ded
parent642e37ccea9702e0cdef1140c5f117370c2777dd
Merge branch 'gso_type'

Michael S. Tsirkin says:

====================
At the moment, macvtap crashes are observed if macvtap is attached
to an interface with LRO enabled.
The crash in question is BUG() in macvtap_skb_to_vnet_hdr.
This happens because several drivers set gso_size but not gso_type
in incoming skbs.
This didn't use to be the case: with intel cards on 3.2 and older
kernels, with qlogic - on 3.4 and older kernels, so it's a regression if
not a recent one.
The following patches fix this for qlogic, broadcom and intel drivers.

I tested that the patch fixes the crash for ixgbe but
don't have qlogic/broadcom hardware to test.
I also only tested TCPv4.

Please review, and consider for 3.8.

Changes from v1:
- added missing htons as suggested by Eric
- backported the relevant bits from
  cbf1de72324a8105ddcc3d9ce9acbc613faea17e for bnx2x
====================

Signed-off-by: David S. Miller <davem@davemloft.net>