]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mediatek: Use NET_IP_ALIGN to judge if HW RX_2BYTE_OFFSET is enabled
authorSean Wang <sean.wang@mediatek.com>
Sat, 1 Jun 2019 00:16:27 +0000 (08:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 22:04:07 +0000 (15:04 -0700)
commit6514b09bc8cd387b90a95cc961c5437bec85b18e
tree95deb72120178f3f625410d298ae019e085e31a8
parente5458b5137abc796d27acf455ea0ec4b0f4337fa
net: ethernet: mediatek: Use NET_IP_ALIGN to judge if HW RX_2BYTE_OFFSET is enabled

Should only enable HW RX_2BYTE_OFFSET function in the case NET_IP_ALIGN
equals to 2.

Signed-off-by: Mark Lee <mark-mc.lee@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c