diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-07-22 23:01:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-23 04:28:12 +0300 |
commit | fcd4e60885af969d190999a6c42454c5578d52f1 (patch) | |
tree | 5c1d8c332a3e8dda1f071dbaf4e0dd00e2b79917 /init | |
parent | d1854d509d61d36af44f2130423bff8836e1592e (diff) | |
download | linux-fcd4e60885af969d190999a6c42454c5578d52f1.tar.xz |
r8169: improve rtl_rx
This patch improves few aspects of rtl_rx, no functional change intended.
1. inline rtl8169_try_rx_copy
2. make pkt_size unsigned
3. use constant ETH_FCS_LEN instead of value 4
4. We just created the skb, so we don't need the checks in skb_put.
Also we don't need the return value of skb_put.
Set skb->tail and skb->len directly.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions