File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,23 @@ static void netdev_print_device(struct netdev_dev_get_rsp *d, unsigned int op)
33
33
return ;
34
34
35
35
printf ("xdp-features (%llx):" , d -> xdp_features );
36
- for (int i = 0 ; d -> xdp_features > 1U << i ; i ++ ) {
36
+ for (int i = 0 ; d -> xdp_features >= 1U << i ; i ++ ) {
37
37
if (d -> xdp_features & (1U << i ))
38
38
printf (" %s" , netdev_xdp_act_str (1 << i ));
39
39
}
40
40
41
41
printf (" xdp-rx-metadata-features (%llx):" , d -> xdp_rx_metadata_features );
42
- for (int i = 0 ; d -> xdp_rx_metadata_features > 1U << i ; i ++ ) {
42
+ for (int i = 0 ; d -> xdp_rx_metadata_features >= 1U << i ; i ++ ) {
43
43
if (d -> xdp_rx_metadata_features & (1U << i ))
44
44
printf (" %s" , netdev_xdp_rx_metadata_str (1 << i ));
45
45
}
46
46
47
+ printf (" xsk-features (%llx):" , d -> xsk_features );
48
+ for (int i = 0 ; d -> xsk_features >= 1U << i ; i ++ ) {
49
+ if (d -> xsk_features & (1U << i ))
50
+ printf (" %s" , netdev_xsk_flags_str (1 << i ));
51
+ }
52
+
47
53
printf (" xdp-zc-max-segs=%u" , d -> xdp_zc_max_segs );
48
54
49
55
name = netdev_op_str (op );
You can’t perform that action at this time.
0 commit comments