Lines Matching refs:mode
39 __u32 mode = 0; in macvtap_parse_opt() local
43 mode = MACVLAN_MODE_PRIVATE; in macvtap_parse_opt()
45 mode = MACVLAN_MODE_VEPA; in macvtap_parse_opt()
47 mode = MACVLAN_MODE_BRIDGE; in macvtap_parse_opt()
49 mode = MACVLAN_MODE_PASSTHRU; in macvtap_parse_opt()
53 addattr32(n, 1024, IFLA_MACVLAN_MODE, mode); in macvtap_parse_opt()
70 __u32 mode; in macvtap_print_opt() local
79 mode = rta_getattr_u32(tb[IFLA_VLAN_ID]); in macvtap_print_opt()
81 mode == MACVLAN_MODE_PRIVATE ? "private" in macvtap_print_opt()
82 : mode == MACVLAN_MODE_VEPA ? "vepa" in macvtap_print_opt()
83 : mode == MACVLAN_MODE_BRIDGE ? "bridge" in macvtap_print_opt()
84 : mode == MACVLAN_MODE_PASSTHRU ? "passthru" in macvtap_print_opt()