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)
commit880c2d4b2fdfd580ebcd6bb7240a8027a1d34751
tree95deb72120178f3f625410d298ae019e085e31a8
parent9e4f56f1a7f3287718d0083b5cb85298dc05a5fd
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