Use the available TC macros instead of 0xffff.
Signed-off-by: Roi Dayan <[email protected]>
---
lib/tc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/tc.c b/lib/tc.c
index d3263a2..a71a9e0 100644
--- a/lib/tc.c
+++ b/lib/tc.c
@@ -95,7 +95,7 @@ tc_add_del_ingress_qdisc(int ifindex, bool add)
int flags = add ? NLM_F_EXCL | NLM_F_CREATE : 0;
tcmsg = tc_make_request(ifindex, type, flags, &request);
- tcmsg->tcm_handle = tc_make_handle(0xffff, 0);
+ tcmsg->tcm_handle = TC_H_MAKE(TC_H_INGRESS, 0);
tcmsg->tcm_parent = TC_H_INGRESS;
nl_msg_put_string(&request, TCA_KIND, "ingress");
nl_msg_put_unspec(&request, TCA_OPTIONS, NULL, 0);
--
2.7.4
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev