mirror of https://gitee.com/openkylin/linux.git
qede: qede_fp: simplify a bit 'qede_rx_build_skb()'
Use 'skb_put_data()' instead of rewritting it. This improves readability. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
This commit is contained in:
parent
b6b6cc9acd
commit
24ccb0ab95
|
@ -779,8 +779,7 @@ qede_rx_build_skb(struct qede_dev *edev,
|
|||
return NULL;
|
||||
|
||||
skb_reserve(skb, pad);
|
||||
memcpy(skb_put(skb, len),
|
||||
page_address(bd->data) + offset, len);
|
||||
skb_put_data(skb, page_address(bd->data) + offset, len);
|
||||
qede_reuse_page(rxq, bd);
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue