File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -526,6 +526,10 @@ static int show_link_close_json(int fd, struct bpf_link_info *info)
526
526
show_link_ifindex_json (info -> netkit .ifindex , json_wtr );
527
527
show_link_attach_type_json (info -> netkit .attach_type , json_wtr );
528
528
break ;
529
+ case BPF_LINK_TYPE_SOCKMAP :
530
+ jsonw_uint_field (json_wtr , "map_id" , info -> sockmap .map_id );
531
+ show_link_attach_type_json (info -> sockmap .attach_type , json_wtr );
532
+ break ;
529
533
case BPF_LINK_TYPE_XDP :
530
534
show_link_ifindex_json (info -> xdp .ifindex , json_wtr );
531
535
break ;
@@ -915,6 +919,11 @@ static int show_link_close_plain(int fd, struct bpf_link_info *info)
915
919
show_link_ifindex_plain (info -> netkit .ifindex );
916
920
show_link_attach_type_plain (info -> netkit .attach_type );
917
921
break ;
922
+ case BPF_LINK_TYPE_SOCKMAP :
923
+ printf ("\n\t" );
924
+ printf ("map_id %u " , info -> sockmap .map_id );
925
+ show_link_attach_type_plain (info -> sockmap .attach_type );
926
+ break ;
918
927
case BPF_LINK_TYPE_XDP :
919
928
printf ("\n\t" );
920
929
show_link_ifindex_plain (info -> xdp .ifindex );
You can’t perform that action at this time.
0 commit comments