]> git.baikalelectronics.ru Git - kernel.git/commit
net: Make RX-FCS and LRO mutually exclusive
authorGal Pressman <galp@mellanox.com>
Sun, 4 Mar 2018 12:12:04 +0000 (14:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Mar 2018 15:25:51 +0000 (10:25 -0500)
commit495ec0c3d8b0fee5031cc23cf152966d13891d25
tree2ba380e66afed15d82f3ef785f9eb0cddb575950
parent66b5f431eb2416f6015b8a0068df6347fa67e048
net: Make RX-FCS and LRO mutually exclusive

LRO and RX-FCS offloads cannot be enabled at the same time since it is
not clear what should happen to the FCS of each coalesced packet.
The FCS is not really part of the TCP payload, hence cannot be merged
into one big packet. On the other hand, providing one big LRO packet
with one FCS contradicts the RX-FCS feature goal.

Use the fix features mechanism in order to prevent intersection of the
features and drop LRO in case RX-FCS is requested.

Enabling RX-FCS while LRO is enabled will result in:
$ ethtool -K ens6 rx-fcs on
Actual changes:
large-receive-offload: off [requested on]
rx-fcs: on

Signed-off-by: Gal Pressman <galp@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c