/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_l3_drops.sh | 192 local proto=$1; shift 215 devlink_trap_drop_cleanup $mz_pid $rp2 $proto 1 101 227 local proto=$1; shift 250 devlink_trap_drop_cleanup $mz_pid $rp2 $proto 1 101 262 local proto=$1; shift 284 devlink_trap_drop_cleanup $mz_pid $rp2 $proto 1 101 296 local proto=$1; shift 319 devlink_trap_drop_cleanup $mz_pid $rp2 $proto 1 101 368 )"01:"$( : IP proto 519 local proto=$1; shift [all …]
|
/openbmc/linux/drivers/bluetooth/ |
H A D | hci_ldisc.c | 106 skb = hu->proto->dequeue(hu); in hci_uart_dequeue() 196 hu->proto->close(hu); in hci_uart_init_work() 243 hu->proto->flush(hu); in hci_uart_flush() 286 hu->proto->enqueue(hu, skb); in hci_uart_send_frame() 422 if (hu->proto->setup) in hci_uart_setup() 554 hu->proto->close(hu); in hci_uart_tty_close() 651 if (hu->proto->setup) in hci_uart_register_dev() 673 err = hu->proto->open(hu); in hci_uart_register_dev() 685 hu->proto->close(hu); in hci_uart_register_dev() 705 hu->proto = p; in hci_uart_set_proto() [all …]
|
/openbmc/linux/include/trace/ |
H A D | perf.h | 16 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument 18 perf_trace_##call(void *__data, proto) \ 64 #define DEFINE_EVENT(template, call, proto, args) \ argument 72 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument 73 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | checksum.h | 82 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 89 csum += proto; in csum_tcpudp_nofold() 99 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument 101 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic() 115 __u32 len, __u8 proto, __wsum csum) in csum_ipv6_magic() argument 128 sum += proto; in csum_ipv6_magic()
|
/openbmc/openbmc/meta-google/recipes-google/networking/files/ |
H A D | gbmc-ip-monitor-test.sh | 95 default via 192.168.243.254 dev eno2 proto dhcp metric 100 96 192.168.242.0/23 dev eno2 proto kernel scope link src 192.168.242.57 metric 100 100 ::1 dev lo proto kernel metric 256 pref medium 101 fd01:ff2:5687:4::/64 dev eno2 proto ra metric 100 pref medium 102 fe80::/64 dev eno2 proto kernel metric 100 pref medium 109 [ROUTE]default via 192.168.243.254 dev eno2 proto dhcp metric 100 110 [ROUTE]192.168.242.0/23 dev eno2 proto kernel scope link src 192.168.242.57 metric 100 111 [ROUTE]::1 dev lo proto kernel metric 256 pref medium 112 [ROUTE]fd01:ff2:5687:4::/64 dev eno2 proto ra metric 100 pref medium 113 [ROUTE]fe80::/64 dev eno2 proto kernel metric 100 pref medium
|
/openbmc/linux/samples/bpf/ |
H A D | sockex3_kern.c | 40 static inline void parse_eth_proto(struct __sk_buff *skb, u32 proto); 116 __be16 proto; in parse_ip_proto() member 122 nhoff + offsetof(struct gre_hdr, proto)); in parse_ip_proto() 213 __u32 nhoff, proto; in bpf_func_vlan() local 217 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in bpf_func_vlan() 222 parse_eth_proto(skb, proto); in bpf_func_vlan() 273 static inline void parse_eth_proto(struct __sk_buff *skb, u32 proto) in parse_eth_proto() argument 275 switch (proto) { in parse_eth_proto() 297 __u32 proto = load_half(skb, 12); in main_prog() local 300 parse_eth_proto(skb, proto); in main_prog()
|
/openbmc/linux/include/trace/events/ |
H A D | bpf_test_run.h | 29 #define BPF_TEST_RUN_DEFINE_EVENT(template, call, proto, args, size) \ argument 30 DEFINE_EVENT_WRITABLE(template, call, PARAMS(proto), \ 34 #define BPF_TEST_RUN_DEFINE_EVENT(template, call, proto, args, size) \ argument 35 DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args))
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_nve.c | 64 enum mlxsw_sp_l3proto proto; member 188 enum mlxsw_sp_l3proto proto, in mlxsw_sp_nve_learned_ip_resolve() argument 191 switch (proto) { in mlxsw_sp_nve_learned_ip_resolve() 274 enum mlxsw_sp_l3proto proto) in mlxsw_sp_nve_mc_record_create() argument 293 mc_record->proto = proto; in mlxsw_sp_nve_mc_record_create() 318 enum mlxsw_sp_l3proto proto) in mlxsw_sp_nve_mc_record_get() argument 326 if (mc_record->proto == proto && in mlxsw_sp_nve_mc_record_get() 536 enum mlxsw_sp_l3proto proto, in mlxsw_sp_nve_mc_record_find() argument 543 if (mc_record->proto != proto) in mlxsw_sp_nve_mc_record_find() 579 enum mlxsw_sp_l3proto proto, in mlxsw_sp_nve_mc_list_ip_del() argument [all …]
|
/openbmc/linux/arch/nios2/include/asm/ |
H A D | checksum.h | 41 __u32 len, __u8 proto, in csum_tcpudp_nofold() argument 55 : "r" (daddr), "r" ((len + proto) << 8), in csum_tcpudp_nofold() 64 __u32 len, __u8 proto, in csum_tcpudp_magic() argument 67 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
|
/openbmc/linux/drivers/infiniband/hw/usnic/ |
H A D | usnic_transport.c | 69 int proto; in usnic_transport_sock_to_str() local 72 err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port); in usnic_transport_sock_to_str() 77 proto, &addr, port); in usnic_transport_sock_to_str() 173 int usnic_transport_sock_get_addr(struct socket *sock, int *proto, in usnic_transport_sock_get_addr() argument 188 if (proto) in usnic_transport_sock_get_addr() 189 *proto = sock->sk->sk_protocol; in usnic_transport_sock_get_addr()
|
/openbmc/linux/net/ipv6/netfilter/ |
H A D | nf_reject_ipv6.c | 20 u8 proto = ip6h->nexthdr; in nf_reject_v6_csum_ok() local 34 if (!nf_reject_verify_csum(skb, thoff, proto)) in nf_reject_v6_csum_ok() 37 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in nf_reject_v6_csum_ok() 154 u8 proto; in nf_reject_ip6_tcphdr_get() local 158 proto = oip6h->nexthdr; in nf_reject_ip6_tcphdr_get() 160 &proto, &frag_off); in nf_reject_ip6_tcphdr_get() 172 proto, *otcplen); in nf_reject_ip6_tcphdr_get() 386 u8 proto; in reject6_csum_ok() local 391 proto = ip6h->nexthdr; in reject6_csum_ok() 397 if (!nf_reject_verify_csum(skb, thoff, proto)) in reject6_csum_ok() [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | checksum_64.h | 88 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 96 "g" ((len + proto)<<8), "0" (sum)); in csum_tcpudp_nofold() 113 __u32 len, __u8 proto, in csum_tcpudp_magic() argument 116 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic() 166 __u32 len, __u8 proto, __wsum sum);
|
/openbmc/linux/include/uapi/linux/ |
H A D | if_arcnet.h | 60 __u8 proto; /* protocol ID field - varies */ member 71 __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */ member 81 __u8 proto; /* Always ARC_P_ETHER */ member 88 __u8 proto; member
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | spi-nor.h | 212 static inline bool spi_nor_protocol_is_dtr(enum spi_nor_protocol proto) in spi_nor_protocol_is_dtr() argument 214 return !!(proto & SNOR_PROTO_IS_DTR); in spi_nor_protocol_is_dtr() 217 static inline u8 spi_nor_get_protocol_inst_nbits(enum spi_nor_protocol proto) in spi_nor_get_protocol_inst_nbits() argument 219 return ((unsigned long)(proto & SNOR_PROTO_INST_MASK)) >> in spi_nor_get_protocol_inst_nbits() 223 static inline u8 spi_nor_get_protocol_addr_nbits(enum spi_nor_protocol proto) in spi_nor_get_protocol_addr_nbits() argument 225 return ((unsigned long)(proto & SNOR_PROTO_ADDR_MASK)) >> in spi_nor_get_protocol_addr_nbits() 229 static inline u8 spi_nor_get_protocol_data_nbits(enum spi_nor_protocol proto) in spi_nor_get_protocol_data_nbits() argument 231 return ((unsigned long)(proto & SNOR_PROTO_DATA_MASK)) >> in spi_nor_get_protocol_data_nbits() 235 static inline u8 spi_nor_get_protocol_width(enum spi_nor_protocol proto) in spi_nor_get_protocol_width() argument 237 return spi_nor_get_protocol_data_nbits(proto); in spi_nor_get_protocol_width()
|
/openbmc/linux/arch/x86/um/asm/ |
H A D | checksum.h | 56 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 63 : "g" (daddr), "g" (saddr), "g" ((len + proto) << 8), "0" (sum)); in csum_tcpudp_nofold() 72 __u32 len, __u8 proto, in csum_tcpudp_magic() argument 75 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
|
/openbmc/linux/net/bluetooth/bnep/ |
H A D | netdev.c | 137 u16 proto = ntohs(eh->h_proto); in bnep_net_eth_proto() local 139 if (proto >= ETH_P_802_3_MIN) in bnep_net_eth_proto() 140 return proto; in bnep_net_eth_proto() 150 u16 proto = bnep_net_eth_proto(skb); in bnep_net_proto_filter() local 155 if (proto >= f[i].start && proto <= f[i].end) in bnep_net_proto_filter() 159 BT_DBG("BNEP: filtered skb %p, proto 0x%.4x", skb, proto); in bnep_net_proto_filter()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-filter/libnetfilter/files/ |
H A D | 0001-conntrack-fix-build-with-kernel-5.15-and-musl.patch | 16 proto.h which actually includes the kernel ICMP headers and thus UAPI 20 includes in the proto.h 32 include/internal/proto.h | 1 + 47 diff --git a/include/internal/proto.h b/include/internal/proto.h 49 --- a/include/internal/proto.h 50 +++ b/include/internal/proto.h
|
/openbmc/linux/net/rxrpc/ |
H A D | conn_service.c | 45 if (conn->proto.index_key < k.index_key) in rxrpc_find_service_conn_rcu() 47 else if (conn->proto.index_key > k.index_key) in rxrpc_find_service_conn_rcu() 68 struct rxrpc_conn_proto k = conn->proto; in rxrpc_publish_service_conn() 80 if (cursor->proto.index_key < k.index_key) in rxrpc_publish_service_conn() 82 else if (cursor->proto.index_key > k.index_key) in rxrpc_publish_service_conn() 157 conn->proto.epoch = sp->hdr.epoch; in rxrpc_new_incoming_connection() 158 conn->proto.cid = sp->hdr.cid & RXRPC_CIDMASK; in rxrpc_new_incoming_connection()
|
/openbmc/linux/include/net/ |
H A D | ncsi.h | 34 int ncsi_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid); 35 int ncsi_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid); 42 static inline int ncsi_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid) in ncsi_vlan_rx_add_vid() argument 47 static inline int ncsi_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid) in ncsi_vlan_rx_kill_vid() argument
|
H A D | gro.h | 45 u16 proto; member 200 skb_gro_len(skb), proto, 0); in inet_gro_compute_pseudo() 261 #define __skb_gro_checksum_validate(skb, proto, zero_okay, check, \ argument 267 compute_pseudo(skb, proto)); \ 273 #define skb_gro_checksum_validate(skb, proto, compute_pseudo) \ argument 274 __skb_gro_checksum_validate(skb, proto, false, 0, compute_pseudo) 276 #define skb_gro_checksum_validate_zero_check(skb, proto, check, \ argument 278 __skb_gro_checksum_validate(skb, proto, true, check, compute_pseudo) 296 #define skb_gro_checksum_try_convert(skb, proto, compute_pseudo) \ argument 300 compute_pseudo(skb, proto)); \ [all …]
|
/openbmc/linux/drivers/misc/ti-st/ |
H A D | st_core.c | 38 struct st_proto_s *proto) in remove_channel_from_table() argument 40 pr_info("%s: id %d\n", __func__, proto->chnl_id); in remove_channel_from_table() 42 st_gdata->is_registered[proto->chnl_id] = false; in remove_channel_from_table() 229 struct st_proto_s *proto; in st_int_recv() local 275 proto = st_gdata->list[st_gdata->rx_chnl]; in st_int_recv() 278 [proto->offset_len_in_hdr]; in st_int_recv() 282 else if (proto->len_size == 2) in st_int_recv() 288 __func__, proto->chnl_id); in st_int_recv() 292 proto->offset_len_in_hdr, payload_len); in st_int_recv() 639 long st_unregister(struct st_proto_s *proto) in st_unregister() argument [all …]
|
/openbmc/linux/net/netfilter/ipset/ |
H A D | ip_set_hash_ipportnet.c | 58 u8 proto; member 72 ip1->proto == ip2->proto; in hash_ipportnet4_data_equal() 149 &e.port, &e.proto)) in hash_ipportnet4_kadt() 204 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportnet4_uadt() 207 if (e.proto == 0) in hash_ipportnet4_uadt() 213 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_ipportnet4_uadt() 313 u8 proto; member 327 ip1->proto == ip2->proto; in hash_ipportnet6_data_equal() 406 &e.port, &e.proto)) in hash_ipportnet6_kadt() 470 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportnet6_uadt() [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | nf_flow_table_inet.c | 16 __be16 proto; in nf_flow_offload_inet_hook() local 24 proto = veth->h_vlan_encapsulated_proto; in nf_flow_offload_inet_hook() 27 if (!nf_flow_pppoe_proto(skb, &proto)) in nf_flow_offload_inet_hook() 31 proto = skb->protocol; in nf_flow_offload_inet_hook() 35 switch (proto) { in nf_flow_offload_inet_hook()
|
/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | notify.c | 181 r->proto->ops->set_notify_enabled(r->proto->ph, \ 194 r->proto->ops->fill_custom_report(r->proto->ph, \ 332 struct scmi_registered_events_desc *proto; member 626 queue_work(r_evt->proto->equeue.wq, in scmi_notify() 627 &r_evt->proto->equeue.notify_work); in scmi_notify() 797 r_evt->proto = pd; in scmi_register_protocol_events() 942 mutex_lock(&r_evt->proto->registered_mtx); in scmi_bind_event_handler() 1059 mutex_lock(&r_evt->proto->registered_mtx); in __scmi_event_handler_get_ops() 1259 protocol_id = r_evt->proto->id; in scmi_put_handler() 1284 u8 protocol_id = r_evt->proto->id; in scmi_put_active_handler() [all …]
|
/openbmc/qemu/net/ |
H A D | eth.c | 74 uint16_t proto; in eth_get_l3_proto() local 77 size_t proto_offset = l2hdr_len - sizeof(proto); in eth_get_l3_proto() 84 &proto, sizeof(proto)); in eth_get_l3_proto() 86 return (copied == sizeof(proto)) ? be16_to_cpu(proto) : ETH_P_UNKNOWN; in eth_get_l3_proto() 138 int proto; in eth_get_protocols() local 146 l4hdr_info->proto = ETH_L4_HDR_PROTO_INVALID; in eth_get_protocols() 150 if (proto == ETH_P_IP) { in eth_get_protocols() 169 } else if (proto == ETH_P_IPV6) { in eth_get_protocols() 192 l4hdr_info->proto = ETH_L4_HDR_PROTO_TCP; in eth_get_protocols() 197 _eth_tcp_has_data(proto == ETH_P_IP, in eth_get_protocols() [all …]
|