Skip to content

Commit 2601e4e

Browse files
Eugene Crosserdavem330
authored andcommitted
qeth: enable scatter/gather by default
Set scatter/gather ON by default on OSA, for both layer 2 and layer 3 modes. We always use fragmentation over QDIO anyway, so let the upper layers of the stack take advantage of that. Signed-off-by: Eugene Crosser <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Reviewed-by: Lakhvich Dmitriy <[email protected]> Reviewed-by: Thomas Richter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d52aec9 commit 2601e4e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drivers/s390/net/qeth_l2_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,8 @@ static int qeth_l2_setup_netdev(struct qeth_card *card)
11401140
if (card->info.type == QETH_CARD_TYPE_OSD && !card->info.guestlan) {
11411141
card->dev->hw_features = NETIF_F_IP_CSUM | NETIF_F_RXCSUM |
11421142
NETIF_F_SG;
1143-
/* Turn on RX offloading per default */
1144-
card->dev->features |= NETIF_F_RXCSUM;
1143+
/* Turn on RX offloading and SG per default */
1144+
card->dev->features |= NETIF_F_RXCSUM | NETIF_F_SG;
11451145
}
11461146
card->info.broadcast_capable = 1;
11471147
qeth_l2_request_initial_mac(card);

drivers/s390/net/qeth_l3_main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3191,7 +3191,8 @@ static int qeth_l3_setup_netdev(struct qeth_card *card)
31913191
card->dev->hw_features = NETIF_F_SG |
31923192
NETIF_F_RXCSUM | NETIF_F_IP_CSUM |
31933193
NETIF_F_TSO;
3194-
card->dev->features = NETIF_F_RXCSUM;
3194+
card->dev->features = NETIF_F_RXCSUM |
3195+
NETIF_F_SG;
31953196
}
31963197
}
31973198
} else if (card->info.type == QETH_CARD_TYPE_IQD) {

0 commit comments

Comments
 (0)