octeontx2-pf: Add TC feature for VFs
commit fdf81901e80d3f4790d258deac59c0b23e0d12a3 from git@git.assembla.com:cavium/WindRiver.linux.git This patch adds TC feature for VFs also. When MCAM rules are allocated for a VF then either TC or ntuple filters can be used. Below are the commands to use TC feature for a VF(lbk0): devlink dev param set pci/0002:01:00.1 name mcam_count value 16 \ cmode runtime ethtool -K lbk0 hw-tc-offload on ifconfig lbk0 up tc qdisc add dev lbk0 ingress tc filter add dev lbk0 protocol ip parent ffff: flower skip_sw \ dst_mac 98:03:9b:83:aa:12 action drop A minor change related to aggregated ingress ratelimiting is also done. When pointing leaf level bandwidth profile to mid level profile, the leaf level context is copied to mid level. This copy requires enabling masks of all fields in mid level profile context as per the hardware. This patch sets those masks also. Change-Id: I617152638e6c9f917996d258914e08188b1e4342 Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com> Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/67434 Tested-by: sa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com> Reviewed-by: Sunil Kovvuri Goutham <sgoutham@marvell.com> Signed-off-by: Ruiqiang Hao <Ruiqiang.Hao@windriver.com>
Please register or sign in to comment