aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorYunsheng Lin <[email protected]>2019-10-19 08:03:54 +0000
committerDavid S. Miller <[email protected]>2019-10-21 16:22:10 +0000
commitd35bced88f7043bee42df795cb7a0d5a8e99248c (patch)
tree971f6b5f317fce0ccd8679434718e3e6c1d7e22e /drivers/net/xen-netback/interface.c
parentnet: hns3: make struct hns3_enet_ring cacheline aligned (diff)
downloadkernel-d35bced88f7043bee42df795cb7a0d5a8e99248c.tar.gz
kernel-d35bced88f7043bee42df795cb7a0d5a8e99248c.zip
net: hns3: minor cleanup for hns3_handle_rx_bd()
Since commit e55970950556 ("net: hns3: Add handling of GRO Pkts not fully RX'ed in NAPI poll"), ring->skb is used to record the current SKB when processing the RX BD in hns3_handle_rx_bd(), so the parameter out_skb is unnecessary. This patch also adjusts the err checking to reduce duplication in hns3_handle_rx_bd(), and "err == -ENXIO" is rare case, so put it in the unlikely annotation. Signed-off-by: Yunsheng Lin <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions