Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-arm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-arm
  • Repository

Switch branch/tag
  • ipipe-arm
  • ..
  • core
  • en_tc.c
Find file BlameHistoryPermalink
  • Amir Vadai's avatar
    net/mlx5e: Support offload cls_flower with drop action · e3a2b7ed
    Amir Vadai authored Mar 08, 2016
    
    
    Parse tc_cls_flower_offload into device specific commands and program
    the hardware to classify and act accordingly.
    
    For example, to drop ICMP (ip_proto 1) packets from specific smac, dmac,
    src_ip, src_ip, arriving to interface ens9:
    
     # tc qdisc add dev ens9 ingress
    
     # tc filter add dev ens9 protocol ip parent ffff: \
         flower ip_proto 1 \
         dst_mac 7c:fe:90:69:81:62 src_mac 7c:fe:90:69:81:56 \
         dst_ip 11.11.11.11 src_ip 11.11.11.12 indev ens9 \
         action drop
    Signed-off-by: default avatarAmir Vadai <amir@vadai.me>
    Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    e3a2b7ed

Replace en_tc.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy