OpenCloudOS-Kernel/drivers/staging/rtl8192u
Tobias Klauser 4a7c972644 net: Remove usage of net_device last_rx member
The network stack no longer uses the last_rx member of struct net_device
since the bonding driver switched to use its own private last_rx in
commit 9f24273837 ("bonding: use last_arp_rx in slave_last_rx()").

However, some drivers still (ab)use the field for their own purposes and
some driver just update it without actually using it.

Previously, there was an accompanying comment for the last_rx member
added in commit 4dc89133f4 ("net: add a comment on netdev->last_rx")
which asked drivers not to update is, unless really needed. However,
this commend was removed in commit f8ff080dac ("bonding: remove
useless updating of slave->dev->last_rx"), so some drivers added later
on still did update last_rx.

Remove all usage of last_rx and switch three drivers (sky2, atp and
smc91c92_cs) which actually read and write it to use their own private
copy in netdev_priv.

Compile-tested with allyesconfig and allmodconfig on x86 and arm.

Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Jay Vosburgh <j.vosburgh@gmail.com>
Cc: Veaceslav Falico <vfalico@gmail.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Cc: Mirko Lindner <mlindner@marvell.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-18 17:22:49 -05:00
..
ieee80211 net: Remove usage of net_device last_rx member 2017-01-18 17:22:49 -05:00
Kconfig
Makefile
authors
changes
copying
r819xU_cmdpkt.c
r819xU_cmdpkt.h rtl8192u: BIT() macro cleanup 2015-10-13 10:32:40 -07:00
r819xU_firmware.c
r819xU_firmware.h
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_phy.c staging: rtl8192u: use to_delayed_work 2016-02-07 19:56:45 -08:00
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c staging: rtl8192u: propagate errors in eprom_read 2016-06-18 19:49:02 -07:00
r8180_93cx6.h staging: rtl8192u: propagate errors in eprom_read 2016-06-18 19:49:02 -07:00
r8190_rtl8256.c Staging: rtl8192u: Remove unnecessary semicolon. 2016-03-28 07:30:36 -07:00
r8190_rtl8256.h
r8192U.h staging/rtl8192u: use s8 instead of char 2016-08-21 18:21:28 +02:00
r8192U_core.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
r8192U_dm.c Staging: rtl8192u: Remove useless type conversion 2016-09-20 13:35:45 +02:00
r8192U_dm.h
r8192U_hw.h rtl8192u: BIT() macro cleanup 2015-10-13 10:32:40 -07:00
r8192U_wx.c rtl8192u: r8192_priv: Replace semaphore wx_sem with mutex 2016-06-18 19:50:48 -07:00
r8192U_wx.h