net: enetc: declare NETIF_F_HW_CSUM and do it in software
authorIoana Ciornei <ioana.ciornei@nxp.com>
Thu, 7 Oct 2021 15:30:42 +0000 (18:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2021 15:59:08 +0000 (16:59 +0100)
commitacede3c5dad5b83c75c624514bd57171062b4c46
tree70a6c578818dff4ced04142f54fb19af160aa006
parent36ee7281c586eca7bd1c9ce2cc1530059518df06
net: enetc: declare NETIF_F_HW_CSUM and do it in software

This is just a preparation patch for software TSO in the enetc driver.
Unfortunately, ENETC does not support Tx checksum offload which would
normally render TSO, even software, impossible.

Declare NETIF_F_HW_CSUM as part of the feature set and do it at driver
level using skb_csum_hwoffload_help() so that we can move forward and
also add support for TSO in the next patch.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc.c
drivers/net/ethernet/freescale/enetc/enetc_pf.c
drivers/net/ethernet/freescale/enetc/enetc_vf.c