s390/qeth: don't use restricted offloads for local traffic
Current OSA models don't support TSO for traffic to local next-hops, and some old models didn't offer TX CSO for such packets either. So as part of .ndo_features_check, check if a packet's next-hop resides on the same OSA Adapter. Opt out from affected HW offloads accordingly. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
1d38c2e494
commit
c619e9a6f5
@@ -710,6 +710,7 @@ static int qeth_l2_setup_netdev(struct qeth_card *card)
|
||||
|
||||
if (card->dev->hw_features & (NETIF_F_TSO | NETIF_F_TSO6)) {
|
||||
card->dev->needed_headroom = sizeof(struct qeth_hdr_tso);
|
||||
netif_keep_dst(card->dev);
|
||||
netif_set_gso_max_size(card->dev,
|
||||
PAGE_SIZE * (QDIO_MAX_ELEMENTS_PER_BUFFER - 1));
|
||||
}
|
||||
|
Reference in New Issue
Block a user