Skip to content

Commit

Permalink
s390/qeth: let isolation mode override HW offload restrictions
Browse files Browse the repository at this point in the history
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: c619e9a ("s390/qeth: don't use restricted offloads for local traffic")
Signed-off-by: Julian Wiedmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
julianwiedmann authored and davem330 committed Jun 19, 2020
1 parent e2dfcfb commit 8cebedb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/s390/net/qeth_core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8cebedb

Please sign in to comment.