]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: f_u32: Fill in 'linkid' provided by user
authorSushma Sitaram <sushma.sitaram@intel.com>
Wed, 28 Sep 2016 18:30:16 +0000 (11:30 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 10 Oct 2016 01:51:00 +0000 (18:51 -0700)
commit58d93d00309b56dee4fd4d77d2d615f32ec79d28
treed9635953cfb76ae1a7cba347439820315d22c9d5
parentafd3921ea9805553bd51a7c00efe33a819e13e8e
tc: f_u32: Fill in 'linkid' provided by user

Currently, 'linkid' input by the user is parsed but 'handle' is appended to the netlink message.

# tc filter add dev enp1s0f1 protocol ip parent ffff: prio 99 u32 ht 800: \
order 1 link 1: offset at 0 mask 0f00 shift 6 plus 0 eat match ip \
protocol 6 ff

resulted in:
filter protocol ip pref 99 u32 fh 800::1 order 1 key ht 800 bkt 0
  match 00060000/00ff0000 at 8
    offset 0f00>>6 at 0  eat

This patch results in:
filter protocol ip pref 99 u32 fh 800::1 order 1 key ht 800 bkt 0 link 1:
  match 00060000/00ff0000 at 8
    offset 0f00>>6 at 0  eat

Signed-off-by Sushma Sitaram: Sushma Sitaram <sushma.sitaram@intel.com>
tc/f_u32.c