mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
myr10ge: again fix lro_gen_skb() alignment
Add LRO alignment initially committed in621544eb8c
("[LRO]: fix lro_gen_skb() alignment") and removed in0dcffac1a3
("myri10ge: add multislices support") during conversion to multi-slice. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ad5a24e094
commit
636d2f68a0
@ -2447,6 +2447,7 @@ static int myri10ge_open(struct net_device *dev)
|
|||||||
lro_mgr->lro_arr = ss->rx_done.lro_desc;
|
lro_mgr->lro_arr = ss->rx_done.lro_desc;
|
||||||
lro_mgr->get_frag_header = myri10ge_get_frag_header;
|
lro_mgr->get_frag_header = myri10ge_get_frag_header;
|
||||||
lro_mgr->max_aggr = myri10ge_lro_max_pkts;
|
lro_mgr->max_aggr = myri10ge_lro_max_pkts;
|
||||||
|
lro_mgr->frag_align_pad = 2;
|
||||||
if (lro_mgr->max_aggr > MAX_SKB_FRAGS)
|
if (lro_mgr->max_aggr > MAX_SKB_FRAGS)
|
||||||
lro_mgr->max_aggr = MAX_SKB_FRAGS;
|
lro_mgr->max_aggr = MAX_SKB_FRAGS;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user