projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41aeed5
)
qeth: fill netdevice->gso_* attributes accurately
author
Eugene Crosser
<
[email protected]
>
Thu, 16 Jun 2016 14:18:54 +0000
(16:18 +0200)
committer
David S. Miller
<
[email protected]
>
Fri, 17 Jun 2016 05:16:11 +0000
(22:16 -0700)
Use QETH_MAX_BUFFER_ELEMENTS(card) instead of constant 16.
Also fill gso_max_segs and gso_min_segs.
Signed-off-by: Eugene Crosser <
[email protected]
>
Signed-off-by: Ursula Braun <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/s390/net/qeth_l3_main.c
patch
|
blob
|
history
diff --git
a/drivers/s390/net/qeth_l3_main.c
b/drivers/s390/net/qeth_l3_main.c
index 86b3bc28d9d49e08a093a8a3b56166ae3c8fb87f..76ddd18906eaf0b3c16c77afadcf77c479819479 100644
(file)
--- a/
drivers/s390/net/qeth_l3_main.c
+++ b/
drivers/s390/net/qeth_l3_main.c
@@
-3217,7
+3217,9
@@
static int qeth_l3_setup_netdev(struct qeth_card *card)
NETIF_F_HW_VLAN_CTAG_RX |
NETIF_F_HW_VLAN_CTAG_FILTER;
netif_keep_dst(card->dev);
- card->dev->gso_max_size = 15 * PAGE_SIZE;
+ card->dev->gso_max_size = (QETH_MAX_BUFFER_ELEMENTS(card) - 1) *
+ PAGE_SIZE;
+ card->dev->gso_max_segs = (QETH_MAX_BUFFER_ELEMENTS(card) - 1);
SET_NETDEV_DEV(card->dev, &card->gdev->dev);
netif_napi_add(card->dev, &card->napi, qeth_l3_poll, QETH_NAPI_WEIGHT);