]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite978ce68e32cbaccd23b697eaac7f800b7e51cb7
tree93f25e9feb66ffab17342f38c7d14a462fce40b5
parent411b4868fa0e860a2af9a3b05bae2aa12fc1e88c
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