diff options
author | 2022-11-03 21:47:54 -0500 | |
---|---|---|
committer | 2022-11-07 11:28:07 +0000 | |
commit | 6c8fae0caf5dd893987a66772b12aacdf88dd848 (patch) | |
tree | ef46aa29c50c5dad0e684ef708d9258b65a8483a /drivers/net/phy/phy.c | |
parent | s390/lcs: Fix return type of lcs_start_xmit() (diff) | |
download | wireguard-linux-6c8fae0caf5dd893987a66772b12aacdf88dd848.tar.xz wireguard-linux-6c8fae0caf5dd893987a66772b12aacdf88dd848.zip |
net: fec: simplify the code logic of quirks
Simplify the code logic of handling the quirk of FEC_QUIRK_HAS_RACC.
If a SoC has the RACC quirk, the driver will enable the 16bit shift
by default in the probe function for a better performance.
This patch handles the logic in one place to make the logic simple
and clean. The patch optimizes the fec_enet_xdp_get_tx_queue function
according to Paolo Abeni's comments, and it also exludes the SoCs that
require to do frame swap from XDP support.
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy.c')
0 files changed, 0 insertions, 0 deletions