mirror_ubuntu-kernels/drivers/net
Alexander Lobakin 27ffa273a0 ice: switch: unobscurify bitops loop in ice_fill_adv_dummy_packet()
A loop performing header modification according to the provided mask
in ice_fill_adv_dummy_packet() is very cryptic (and error-prone).
Replace two identical cast-deferences with a variable. Replace three
struct-member-array-accesses with a variable. Invert the condition,
reduce the indentation by one -> eliminate line wraps.

Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2022-04-07 08:20:10 -07:00
..
appletalk
arcnet
bonding net: add per-cpu storage and net->core_stats 2022-03-11 23:17:24 -08:00
caif
can can: gs_usb: gs_make_candev(): fix memory leak for devices with extended bit timing configuration 2022-03-31 09:55:27 +02:00
dsa net: dsa: felix: fix possible NULL pointer dereference 2022-03-30 12:07:38 -07:00
ethernet ice: switch: unobscurify bitops loop in ice_fill_adv_dummy_packet() 2022-04-07 08:20:10 -07:00
fddi
fjes
hamradio hamradio: Fix wrong assignment of 'bbc->cfg.loopback' 2022-03-16 19:17:49 -07:00
hippi
hyperv Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-17 13:56:58 -07:00
ieee802154 spi: Updates for v5.18 2022-03-21 18:33:57 -07:00
ipa net: ipa: use struct_size() for the interconnect array 2022-03-11 22:50:07 -08:00
ipvlan net: add per-cpu storage and net->core_stats 2022-03-11 23:17:24 -08:00
mctp mctp: serial: Use netif_rx(). 2022-03-06 11:05:31 +00:00
mdio net: phy: mscc-miim: add support to set MDIO bus frequency 2022-04-06 14:04:16 +01:00
netdevsim devlink: hold the instance lock during eswitch_mode callbacks 2022-03-21 14:11:38 +00:00
pcs
phy net: phy: broadcom: Fix brcm_fet_config_init() 2022-03-25 16:59:21 -07:00
plip slip/plip: Use netif_rx(). 2022-03-06 11:05:31 +00:00
ppp net: remove noblock parameter from skb_recv_datagram() 2022-04-06 13:45:26 +01:00
slip slip/plip: Use netif_rx(). 2022-03-06 11:05:31 +00:00
team
usb net: usb: remove duplicate assignment 2022-04-06 15:19:53 +01:00
vmxnet3
vxlan vxlan: do not feed vxlan_vnifilter_dump_dev with non vxlan devices 2022-03-31 08:53:01 -07:00
wan net: wan: remove the lanmedia (lmc) driver 2022-04-06 15:28:23 +01:00
wireguard wireguard: socket: ignore v6 endpoints when ipv6 is disabled 2022-03-30 19:14:09 -07:00
wireless iwlwifi: mvm: Don't fail if PPAG isn't supported 2022-03-22 16:18:27 -07:00
wwan Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-03-23 10:53:49 -07:00
xen-netback
amt.c
bareudp.c bareudp: use ipv6_mod_enabled to check if IPv6 enabled 2022-03-16 19:16:57 -07:00
dummy.c
eql.c
geneve.c net: geneve: add missing netlink policy and size for IFLA_GENEVE_INNER_PROTO_INHERIT 2022-03-22 22:19:46 -07:00
gtp.c gtp: Fix inconsistent indenting 2022-03-16 08:47:02 -07:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c net: macvlan: add net device refcount tracker 2022-03-14 10:06:54 +00:00
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c net: add per-cpu storage and net->core_stats 2022-03-11 23:17:24 -08:00
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c net: tap: track dropped skb via kfree_skb_reason() 2022-03-06 11:04:01 +00:00
thunderbolt.c
tun.c net: add per-cpu storage and net->core_stats 2022-03-11 23:17:24 -08:00
veth.c veth: Allow jumbo frames in xdp mode 2022-03-17 20:33:52 +01:00
virtio_net.c virtio: features, fixes 2022-03-31 13:57:15 -07:00
vrf.c net: Add l3mdev index to flow struct and avoid oif reset for port devices 2022-03-15 20:20:02 -07:00
vsockmon.c
xen-netfront.c xen/grant-table: remove readonly parameter from functions 2022-03-15 20:34:40 -05:00