Searched refs:ifobject (Results 1 – 2 of 2) sorted by relevance
157 static void gen_eth_hdr(struct ifobject *ifobject, struct ethhdr *eth_hdr) in gen_eth_hdr() argument159 memcpy(eth_hdr->h_dest, ifobject->dst_mac, ETH_ALEN); in gen_eth_hdr()160 memcpy(eth_hdr->h_source, ifobject->src_mac, ETH_ALEN); in gen_eth_hdr()164 static bool is_umem_valid(struct ifobject *ifobj) in is_umem_valid()179 static int xsk_configure_umem(struct ifobject *ifobj, struct xsk_umem_info *umem, void *buffer, in xsk_configure_umem()246 struct ifobject *ifobject, bool shared) in __xsk_configure_socket() argument255 cfg.bind_flags = ifobject->bind_flags; in __xsk_configure_socket()258 if (ifobject->pkt_stream && ifobject->mtu > MAX_ETH_PKT_SIZE) in __xsk_configure_socket()261 txr = ifobject->tx_on ? &xsk->tx : NULL; in __xsk_configure_socket()262 rxr = ifobject->rx_on ? &xsk->rx : NULL; in __xsk_configure_socket()[all …]
141 struct ifobject;142 typedef int (*validation_func_t)(struct ifobject *ifobj);145 struct ifobject { struct177 struct ifobject *ifobj_tx; argument178 struct ifobject *ifobj_rx;