diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-06-17 16:54:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-19 05:27:42 +0200 |
commit | 8cebedb643832586162aa5313cae781173c1f81b (patch) | |
tree | 7fb6a21fe6cf05367c797f7df939438b3f35616f /drivers/s390 | |
parent | s390/qeth: fix error handling for isolation mode cmds (diff) | |
download | linux-8cebedb643832586162aa5313cae781173c1f81b.tar.xz linux-8cebedb643832586162aa5313cae781173c1f81b.zip |
s390/qeth: let isolation mode override HW offload restrictions
When a device is configured with ISOLATION_MODE_FWD, traffic never goes
through the internal switch. Don't apply the offload restrictions in
this case.
Fixes: c619e9a6f52f ("s390/qeth: don't use restricted offloads for local traffic")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 9636415f810b..88e998de2d03 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c @@ -6837,9 +6837,11 @@ netdev_features_t qeth_features_check(struct sk_buff *skb, struct net_device *dev, netdev_features_t features) { + struct qeth_card *card = dev->ml_priv; + /* Traffic with local next-hop is not eligible for some offloads: */ - if (skb->ip_summed == CHECKSUM_PARTIAL) { - struct qeth_card *card = dev->ml_priv; + if (skb->ip_summed == CHECKSUM_PARTIAL && + card->options.isolation != ISOLATION_MODE_FWD) { netdev_features_t restricted = 0; if (skb_is_gso(skb) && !netif_needs_gso(skb, features)) |