1. 05 4月, 2016 6 次提交
  2. 03 4月, 2016 12 次提交
  3. 02 4月, 2016 8 次提交
  4. 01 4月, 2016 6 次提交
  5. 31 3月, 2016 6 次提交
  6. 30 3月, 2016 2 次提交
    • S
      ixgbe: Fix cls_u32 offload support for L4 ports · b5aea3de
      Sridhar Samudrala 提交于
      Fix support for 16 bit source/dest port matches in ixgbe model.
      u32 uses a single 32-bit key value for both source and destination ports
      starting at offset 0. So replace the 2 functions with a single function
      that takes this key value/mask to program both source and dest ports.
      
      Verified with the following filter:
      
       #tc qdisc add dev p4p1 ingress
       #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
      	handle 1: u32 divisor 1
       #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
      	handle 800:0:10 u32 ht 800: link 1: \
      	offset at 0 mask 0f00 shift 6 plus 0 eat match ip protocol 6 ff
       #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
      	handle 1:0:10 u32 ht 1: \
      	match tcp src 1024 ffff match tcp dst 80 ffff action drop
       #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
      	handle 1:0:11 u32 ht 1: \
      	match tcp src 1025 ffff action drop
       #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
      	handle 1:0:12 u32 ht 1: \
      	match tcp dst 81 ffff action drop
      Signed-off-by: NSridhar Samudrala <sridhar.samudrala@intel.com>
      Acked-by: NJohn Fastabend <john.r.fastabend@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      b5aea3de
    • S
      ixgbe: Fix cls_u32 offload support for fields with masks · ebd83ad8
      Sridhar Samudrala 提交于
      Remove the incorrect check for mask in ixgbe_configure_clsu32 and
      drop the 'mask' field that is not required in struct ixgbe_mat_field
      
      Verified with the following filters:
      
       #tc qdisc add dev p4p1 ingress
       #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
      	handle 800:0:1 u32 ht 800: \
      	match ip dst 10.0.0.1/8 match ip src 10.0.0.2/8 action drop
       #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
      	handle 800:0:2 u32 ht 800: \
      	match ip dst 11.0.0.1/16 match ip src 11.0.0.2/16 action drop
       #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
      	handle 800:0:3 u32 ht 800: \
      	match ip dst 12.0.0.1/24 match ip src 12.0.0.2/24 action drop
       #tc filter add dev p4p1 parent ffff: protocol ip prio 99 \
      	handle 800:0:4 u32 ht 800: \
      	match ip dst 13.0.0.1/32 match ip src 13.0.0.2/32 action drop
      Signed-off-by: NSridhar Samudrala <sridhar.samudrala@intel.com>
      Acked-by: NJohn Fastabend <john.r.fastabend@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      ebd83ad8