]> 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)
commit10fcfb10b10235e050eddd96c01eff36fcaccbb5
tree93f25e9feb66ffab17342f38c7d14a462fce40b5
parentb385060a675de2312f110c20c3a5535b9749ecf1
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