1. 25 Jun, 2020 5 commits
    • Parav Pandit's avatar
      net/mlx5: Avoid eswitch header inclusion in fs core layer · 04dfa705
      Parav Pandit authored
      Flow steering core layer is independent of the eswitch layer.
      Hence avoid fs_core dependency on eswitch.
      Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      04dfa705
    • Po Liu's avatar
      net: enetc add tc flower offload flow metering policing action · d621d770
      Po Liu authored
      Flow metering entries in IEEE 802.1Qci is an optional function for a
      flow filtering module. Flow metering is two rates two buckets and three
      color marker to policing the frames. This patch only enable one rate one
      bucket and in color blind mode. Flow metering instance are as
      specified in the algorithm in MEF 10.3 and in Bandwidth Profile
      Parameters. They are:
      
      a) Flow meter instance identifier. An integer value identifying the flow
      meter instance. The patch use the police 'index' as thin value.
      b) Committed Information Rate (CIR), in bits per second. This patch use
      the 'rate_bytes_ps' represent this value.
      c) Committed Burst Size (CBS), in octets. This patch use the 'burst'
      represent this value.
      d) Excess Information Rate (EIR), in bits per second.
      e) Excess Burst Size per Bandwidth Profile Flow (EBS), in octets.
      And plus some other parameters. This patch set EIR/EBS default disable
      and color blind mode.
      
      v1->v2 changes:
      - Use div_u64() as division replace the '/' report:
      
      All errors (new ones prefixed by >>):
      
         ld: drivers/net/ethernet/freescale/enetc/enetc_qos.o: in function `enetc_flowmeter_hw_set':
      >> enetc_qos.c:(.text+0x66): undefined reference to `__udivdi3'
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarPo Liu <Po.Liu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d621d770
    • Po Liu's avatar
      net: qos: police action add index for tc flower offloading · 627e39b1
      Po Liu authored
      Hardware device may include more than one police entry. Specifying the
      action's index make it possible for several tc filters to share the same
      police action when installing the filters.
      
      Propagate this index to device drivers through the flow offload
      intermediate representation, so that drivers could share a single
      hardware policer between multiple filters.
      
      v1->v2 changes:
      - Update the commit message suggest by Ido Schimmel <idosch@idosch.org>
      Signed-off-by: default avatarPo Liu <Po.Liu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      627e39b1
    • Po Liu's avatar
      net: enetc: add support max frame size for tc flower offload · 89d1f096
      Po Liu authored
      Base on the tc flower offload police action add max frame size by the
      parameter 'mtu'. Tc flower device driver working by the IEEE 802.1Qci
      stream filter can implement the max frame size filtering. Add it to the
      current hardware tc flower stearm filter driver.
      Signed-off-by: default avatarPo Liu <Po.Liu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      89d1f096
    • Po Liu's avatar
      net: qos: add tc police offloading action with max frame size limit · 19e528dc
      Po Liu authored
      Current police offloading support the 'burst'' and 'rate_bytes_ps'. Some
      hardware own the capability to limit the frame size. If the frame size
      larger than the setting, the frame would be dropped. For the police
      action itself already accept the 'mtu' parameter in tc command. But not
      extend to tc flower offloading. So extend 'mtu' to tc flower offloading.
      Signed-off-by: default avatarPo Liu <Po.Liu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      19e528dc
  2. 24 Jun, 2020 35 commits