提交 8cebedb6 编写于 作者: J Julian Wiedmann 提交者: David S. Miller

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: c619e9a6 ("s390/qeth: don't use restricted offloads for local traffic")
Signed-off-by: NJulian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e2dfcfba
...@@ -6837,9 +6837,11 @@ netdev_features_t qeth_features_check(struct sk_buff *skb, ...@@ -6837,9 +6837,11 @@ netdev_features_t qeth_features_check(struct sk_buff *skb,
struct net_device *dev, struct net_device *dev,
netdev_features_t features) netdev_features_t features)
{ {
struct qeth_card *card = dev->ml_priv;
/* Traffic with local next-hop is not eligible for some offloads: */ /* Traffic with local next-hop is not eligible for some offloads: */
if (skb->ip_summed == CHECKSUM_PARTIAL) { if (skb->ip_summed == CHECKSUM_PARTIAL &&
struct qeth_card *card = dev->ml_priv; card->options.isolation != ISOLATION_MODE_FWD) {
netdev_features_t restricted = 0; netdev_features_t restricted = 0;
if (skb_is_gso(skb) && !netif_needs_gso(skb, features)) if (skb_is_gso(skb) && !netif_needs_gso(skb, features))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册