Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[linux-2.6-microblaze.git] / tools / testing / selftests / bpf / prog_tests / skb_ctx.c
index 7021b92..25de86a 100644 (file)
@@ -11,6 +11,7 @@ void test_skb_ctx(void)
                .cb[3] = 4,
                .cb[4] = 5,
                .priority = 6,
+               .ifindex = 1,
                .tstamp = 7,
                .wire_len = 100,
                .gso_segs = 8,
@@ -92,6 +93,10 @@ void test_skb_ctx(void)
                   "ctx_out_priority",
                   "skb->priority == %d, expected %d\n",
                   skb.priority, 7);
+       CHECK_ATTR(skb.ifindex != 1,
+                  "ctx_out_ifindex",
+                  "skb->ifindex == %d, expected %d\n",
+                  skb.ifindex, 1);
        CHECK_ATTR(skb.tstamp != 8,
                   "ctx_out_tstamp",
                   "skb->tstamp == %lld, expected %d\n",