Lines Matching full:ethertype
42 __be16 ethertype; member
52 __be16 ethertype; member
80 if (bareudp->ethertype == htons(ETH_P_IP)) { in bareudp_udp_encap_recv()
98 } else if (bareudp->ethertype == htons(ETH_P_MPLS_UC)) { in bareudp_udp_encap_recv()
104 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
120 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
130 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
343 skb_set_inner_protocol(skb, bareudp->ethertype); in bareudp_xmit_skb()
421 if (bareudp->ethertype == proto) in bareudp_proto_valid()
427 if (bareudp->ethertype == htons(ETH_P_MPLS_UC) && in bareudp_proto_valid()
431 if (bareudp->ethertype == htons(ETH_P_IP) && in bareudp_proto_valid()
593 NL_SET_ERR_MSG(extack, "ethertype not specified"); in bareudp2info()
598 conf->ethertype = nla_get_u16(data[IFLA_BAREUDP_ETHERTYPE]); in bareudp2info()
638 (conf->ethertype != htons(ETH_P_MPLS_UC) && in bareudp_configure()
639 conf->ethertype != htons(ETH_P_IP))) { in bareudp_configure()
640 …NL_SET_ERR_MSG(extack, "Cannot set multiproto mode for this ethertype (only IPv4 and unicast MPLS … in bareudp_configure()
645 bareudp->ethertype = conf->ethertype; in bareudp_configure()
719 if (nla_put_be16(skb, IFLA_BAREUDP_ETHERTYPE, bareudp->ethertype)) in bareudp_fill_info()