net: enetc: add hw tc hw offload features for PSPF capability
authorPo Liu <Po.Liu@nxp.com>
Fri, 1 May 2020 00:53:17 +0000 (08:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 23:08:20 +0000 (16:08 -0700)
commit79e499829f3ff5b8f70c87baf1b03ebb3401a3e4
tree93f25e9feb66ffab17342f38c7d14a462fce40b5
parentd29bdd69ecdd70e8e3c2268fc8e188d6ab55e54a
net: enetc: add hw tc hw offload features for PSPF capability

This patch is to let ethtool enable/disable the tc flower offload
features. Hardware ENETC has the feature of PSFP which is for per-stream
policing. When enable the tc hw offloading feature, driver would enable
the IEEE 802.1Qci feature. It is only set the register enable bit for
this feature not enable for any entry of per stream filtering and stream
gate or stream identify but get how much capabilities for each feature.

Signed-off-by: Po Liu <Po.Liu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc.c
drivers/net/ethernet/freescale/enetc/enetc.h
drivers/net/ethernet/freescale/enetc/enetc_hw.h
drivers/net/ethernet/freescale/enetc/enetc_pf.c