Skip to content

Commit 8cebedb

Browse files
julianwiedmanndavem330
authored andcommitted
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: 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]>
1 parent e2dfcfb commit 8cebedb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/s390/net/qeth_core_main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6837,9 +6837,11 @@ netdev_features_t qeth_features_check(struct sk_buff *skb,
68376837
struct net_device *dev,
68386838
netdev_features_t features)
68396839
{
6840+
struct qeth_card *card = dev->ml_priv;
6841+
68406842
/* Traffic with local next-hop is not eligible for some offloads: */
6841-
if (skb->ip_summed == CHECKSUM_PARTIAL) {
6842-
struct qeth_card *card = dev->ml_priv;
6843+
if (skb->ip_summed == CHECKSUM_PARTIAL &&
6844+
card->options.isolation != ISOLATION_MODE_FWD) {
68436845
netdev_features_t restricted = 0;
68446846

68456847
if (skb_is_gso(skb) && !netif_needs_gso(skb, features))

0 commit comments

Comments
 (0)