Lines Matching full:ethertype
42 __be16 ethertype; member
52 __be16 ethertype; member
82 if (bareudp->ethertype == htons(ETH_P_IP)) { in bareudp_udp_encap_recv()
100 } else if (bareudp->ethertype == htons(ETH_P_MPLS_UC)) { in bareudp_udp_encap_recv()
106 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
122 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
132 proto = bareudp->ethertype; in bareudp_udp_encap_recv()
361 skb_set_inner_protocol(skb, bareudp->ethertype); in bareudp_xmit_skb()
444 if (bareudp->ethertype == proto) in bareudp_proto_valid()
450 if (bareudp->ethertype == htons(ETH_P_MPLS_UC) && in bareudp_proto_valid()
454 if (bareudp->ethertype == htons(ETH_P_IP) && in bareudp_proto_valid()
616 NL_SET_ERR_MSG(extack, "ethertype not specified"); in bareudp2info()
621 conf->ethertype = nla_get_u16(data[IFLA_BAREUDP_ETHERTYPE]); in bareudp2info()
661 (conf->ethertype != htons(ETH_P_MPLS_UC) && in bareudp_configure()
662 conf->ethertype != htons(ETH_P_IP))) { in bareudp_configure()
663 …NL_SET_ERR_MSG(extack, "Cannot set multiproto mode for this ethertype (only IPv4 and unicast MPLS … in bareudp_configure()
668 bareudp->ethertype = conf->ethertype; in bareudp_configure()
745 if (nla_put_be16(skb, IFLA_BAREUDP_ETHERTYPE, bareudp->ethertype)) in bareudp_fill_info()