/net/ceph/crush/ |
D | hash.c | 13 #define crush_hashmix(a, b, c) do { \ argument 14 a = a-b; a = a-c; a = a^(c>>13); \ 15 b = b-c; b = b-a; b = b^(a<<8); \ 16 c = c-a; c = c-b; c = c^(b>>13); \ 17 a = a-b; a = a-c; a = a^(c>>12); \ 18 b = b-c; b = b-a; b = b^(a<<16); \ 19 c = c-a; c = c-b; c = c^(b>>5); \ 20 a = a-b; a = a-c; a = a^(c>>3); \ 21 b = b-c; b = b-a; b = b^(a<<10); \ 22 c = c-a; c = c-b; c = c^(b>>15); \ [all …]
|
/net/ceph/ |
D | ceph_hash.c | 10 #define mix(a, b, c) \ argument 12 a = a - b; a = a - c; a = a ^ (c >> 13); \ 13 b = b - c; b = b - a; b = b ^ (a << 8); \ 14 c = c - a; c = c - b; c = c ^ (b >> 13); \ 15 a = a - b; a = a - c; a = a ^ (c >> 12); \ 16 b = b - c; b = b - a; b = b ^ (a << 16); \ 17 c = c - a; c = c - b; c = c ^ (b >> 5); \ 18 a = a - b; a = a - c; a = a ^ (c >> 3); \ 19 b = b - c; b = b - a; b = b ^ (a << 10); \ 20 c = c - a; c = c - b; c = c ^ (b >> 15); \ [all …]
|
D | armor.c | 43 unsigned char a, b, c; in ceph_armor() local 45 a = *src++; in ceph_armor() 46 *dst++ = encode_bits(a >> 2); in ceph_armor() 49 *dst++ = encode_bits(((a & 3) << 4) | (b >> 4)); in ceph_armor() 60 *dst++ = encode_bits(((a & 3) << 4)); in ceph_armor() 80 int a, b, c, d; in ceph_unarmor() local 88 a = decode_bits(src[0]); in ceph_unarmor() 92 if (a < 0 || b < 0 || c < 0 || d < 0) in ceph_unarmor() 95 *dst++ = (a << 2) | (b >> 4); in ceph_unarmor()
|
/net/openvswitch/ |
D | flow_netlink.c | 462 const struct nlattr *a[], in __parse_flow_nlattrs() argument 494 a[type] = nla; in __parse_flow_nlattrs() 507 const struct nlattr *a[], u64 *attrsp, in parse_flow_mask_nlattrs() argument 510 return __parse_flow_nlattrs(attr, a, attrsp, log, true); in parse_flow_mask_nlattrs() 513 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], in parse_flow_nlattrs() argument 516 return __parse_flow_nlattrs(attr, a, attrsp, log, false); in parse_flow_nlattrs() 519 static int genev_tun_opt_from_nlattr(const struct nlattr *a, in genev_tun_opt_from_nlattr() argument 525 if (nla_len(a) > sizeof(match->key->tun_opts)) { in genev_tun_opt_from_nlattr() 527 nla_len(a), sizeof(match->key->tun_opts)); in genev_tun_opt_from_nlattr() 531 if (nla_len(a) % 4 != 0) { in genev_tun_opt_from_nlattr() [all …]
|
D | datapath.c | 545 struct nlattr **a = info->attrs; in ovs_packet_cmd_execute() local 555 bool log = !a[OVS_PACKET_ATTR_PROBE]; in ovs_packet_cmd_execute() 558 if (!a[OVS_PACKET_ATTR_PACKET] || !a[OVS_PACKET_ATTR_KEY] || in ovs_packet_cmd_execute() 559 !a[OVS_PACKET_ATTR_ACTIONS]) in ovs_packet_cmd_execute() 562 len = nla_len(a[OVS_PACKET_ATTR_PACKET]); in ovs_packet_cmd_execute() 569 nla_memcpy(__skb_put(packet, len), a[OVS_PACKET_ATTR_PACKET], len); in ovs_packet_cmd_execute() 572 if (a[OVS_PACKET_ATTR_MRU]) { in ovs_packet_cmd_execute() 573 mru = nla_get_u16(a[OVS_PACKET_ATTR_MRU]); in ovs_packet_cmd_execute() 584 err = ovs_flow_key_extract_userspace(net, a[OVS_PACKET_ATTR_KEY], in ovs_packet_cmd_execute() 589 err = ovs_nla_copy_actions(net, a[OVS_PACKET_ATTR_ACTIONS], in ovs_packet_cmd_execute() [all …]
|
D | actions.c | 603 const struct nlattr *a) in set_nsh() argument 615 err = nsh_key_from_nlattr(a, &key, &mask); in set_nsh() 955 const struct nlattr *a; in output_userspace() local 962 for (a = nla_data(attr), rem = nla_len(attr); rem > 0; in output_userspace() 963 a = nla_next(a, &rem)) { in output_userspace() 964 switch (nla_type(a)) { in output_userspace() 966 upcall.userdata = a; in output_userspace() 970 upcall.portid = nla_get_u32(a); in output_userspace() 977 vport = ovs_vport_rcu(dp, nla_get_u32(a)); in output_userspace() 1072 const struct nlattr *a) in execute_set_action() argument [all …]
|
/net/appletalk/ |
D | aarp.c | 87 static void __aarp_expire(struct aarp_entry *a) in __aarp_expire() argument 89 skb_queue_purge(&a->packet_queue); in __aarp_expire() 90 kfree(a); in __aarp_expire() 98 static void __aarp_send_query(struct aarp_entry *a) in __aarp_send_query() argument 102 struct net_device *dev = a->dev; in __aarp_send_query() 141 eah->pa_dst_net = a->target_addr.s_net; in __aarp_send_query() 142 eah->pa_dst_node = a->target_addr.s_node; in __aarp_send_query() 147 a->xmit_count++; in __aarp_send_query() 148 a->last_sent = jiffies; in __aarp_send_query() 382 struct aarp_entry *a = kmalloc(sizeof(*a), GFP_ATOMIC); in aarp_alloc() local [all …]
|
/net/sched/ |
D | act_api.c | 25 static void tcf_action_goto_chain_exec(const struct tc_action *a, in tcf_action_goto_chain_exec() argument 28 const struct tcf_chain *chain = rcu_dereference_bh(a->goto_chain); in tcf_action_goto_chain_exec() 87 struct tcf_chain *tcf_action_set_ctrlact(struct tc_action *a, int action, in tcf_action_set_ctrlact() argument 90 a->tcfa_action = action; in tcf_action_set_ctrlact() 91 rcu_swap_protected(a->goto_chain, goto_chain, 1); in tcf_action_set_ctrlact() 357 int tcf_idr_search(struct tc_action_net *tn, struct tc_action **a, u32 index) in tcf_idr_search() argument 371 *a = p; in tcf_idr_search() 412 struct tc_action **a, const struct tc_action_ops *ops, in tcf_idr_create() argument 451 *a = p; in tcf_idr_create() 485 struct tc_action **a, int bind) in tcf_idr_check_alloc() argument [all …]
|
D | act_vlan.c | 22 static int tcf_vlan_act(struct sk_buff *skb, const struct tc_action *a, in tcf_vlan_act() argument 25 struct tcf_vlan *v = to_vlan(a); in tcf_vlan_act() 103 struct nlattr *est, struct tc_action **a, in tcf_vlan_init() argument 134 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init() 148 tcf_idr_release(*a, bind); in tcf_vlan_init() 156 tcf_idr_release(*a, bind); in tcf_vlan_init() 170 tcf_idr_release(*a, bind); in tcf_vlan_init() 185 tcf_idr_release(*a, bind); in tcf_vlan_init() 193 ret = tcf_idr_create(tn, index, est, a, in tcf_vlan_init() 202 tcf_idr_release(*a, bind); in tcf_vlan_init() [all …]
|
D | act_simple.c | 25 static int tcf_simp_act(struct sk_buff *skb, const struct tc_action *a, in tcf_simp_act() argument 28 struct tcf_defact *d = to_defact(a); in tcf_simp_act() 44 static void tcf_simp_release(struct tc_action *a) in tcf_simp_release() argument 46 struct tcf_defact *d = to_defact(a); in tcf_simp_release() 59 static int reset_policy(struct tc_action *a, const struct nlattr *defdata, in reset_policy() argument 70 d = to_defact(a); in reset_policy() 72 goto_ch = tcf_action_set_ctrlact(a, p->action, goto_ch); in reset_policy() 87 struct nlattr *est, struct tc_action **a, in tcf_simp_init() argument 113 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_simp_init() 122 tcf_idr_release(*a, bind); in tcf_simp_init() [all …]
|
D | act_mirred.c | 71 static void tcf_mirred_release(struct tc_action *a) in tcf_mirred_release() argument 73 struct tcf_mirred *m = to_mirred(a); in tcf_mirred_release() 94 struct nlattr *est, struct tc_action **a, in tcf_mirred_init() argument 124 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_mirred_init() 139 tcf_idr_release(*a, bind); in tcf_mirred_init() 152 ret = tcf_idr_create(tn, index, est, a, in tcf_mirred_init() 160 tcf_idr_release(*a, bind); in tcf_mirred_init() 164 m = to_mirred(*a); in tcf_mirred_init() 188 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_mirred_init() 205 tcf_idr_release(*a, bind); in tcf_mirred_init() [all …]
|
D | act_ipt.c | 77 static void tcf_ipt_release(struct tc_action *a) in tcf_ipt_release() argument 79 struct tcf_ipt *ipt = to_ipt(a); in tcf_ipt_release() 82 ipt_destroy_target(ipt->tcfi_t, a->idrinfo->net); in tcf_ipt_release() 96 struct nlattr *est, struct tc_action **a, in __tcf_ipt_init() argument 121 err = tcf_idr_check_alloc(tn, &index, a, bind); in __tcf_ipt_init() 130 tcf_idr_release(*a, bind); in __tcf_ipt_init() 139 tcf_idr_release(*a, bind); in __tcf_ipt_init() 146 ret = tcf_idr_create(tn, index, est, a, ops, bind, in __tcf_ipt_init() 158 tcf_idr_release(*a, bind); in __tcf_ipt_init() 180 ipt = to_ipt(*a); in __tcf_ipt_init() [all …]
|
D | act_connmark.c | 31 static int tcf_connmark_act(struct sk_buff *skb, const struct tc_action *a, in tcf_connmark_act() argument 37 struct tcf_connmark_info *ca = to_connmark(a); in tcf_connmark_act() 98 struct nlattr *est, struct tc_action **a, in tcf_connmark_init() argument 124 ret = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_connmark_init() 126 ret = tcf_idr_create(tn, index, est, a, in tcf_connmark_init() 133 ci = to_connmark(*a); in tcf_connmark_init() 138 tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_connmark_init() 144 ci = to_connmark(*a); in tcf_connmark_init() 148 tcf_idr_release(*a, bind); in tcf_connmark_init() 157 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_connmark_init() [all …]
|
D | act_sample.c | 37 struct nlattr *est, struct tc_action **a, int ovr, in tcf_sample_init() argument 63 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_sample_init() 71 ret = tcf_idr_create(tn, index, est, a, in tcf_sample_init() 79 tcf_idr_release(*a, bind); in tcf_sample_init() 106 s = to_sample(*a); in tcf_sample_init() 109 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_sample_init() 131 tcf_idr_release(*a, bind); in tcf_sample_init() 135 static void tcf_sample_cleanup(struct tc_action *a) in tcf_sample_cleanup() argument 137 struct tcf_sample *s = to_sample(a); in tcf_sample_cleanup() 163 static int tcf_sample_act(struct sk_buff *skb, const struct tc_action *a, in tcf_sample_act() argument [all …]
|
D | Kconfig | 10 When the kernel has several packets to send out over a network 17 is a FIFO (first come, first served). If you say Y here, you will be 21 need a certain minimum data flow rate, or if you need to limit the 59 To compile this code as a module, choose M here: the 68 To compile this code as a module, choose M here: the 77 To compile this code as a module, choose M here: the 86 To compile this code as a module, choose M here: the 97 To compile this code as a module, choose M here: the 108 To compile this code as a module, choose M here: the 119 To compile this code as a module, choose M here: the [all …]
|
D | act_skbmod.c | 25 static int tcf_skbmod_act(struct sk_buff *skb, const struct tc_action *a, in tcf_skbmod_act() argument 28 struct tcf_skbmod *d = to_skbmod(a); in tcf_skbmod_act() 84 struct nlattr *est, struct tc_action **a, in tcf_skbmod_init() argument 133 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init() 142 tcf_idr_release(*a, bind); in tcf_skbmod_init() 149 ret = tcf_idr_create(tn, index, est, a, in tcf_skbmod_init() 158 tcf_idr_release(*a, bind); in tcf_skbmod_init() 165 d = to_skbmod(*a); in tcf_skbmod_init() 178 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_skbmod_init() 202 tcf_idr_release(*a, bind); in tcf_skbmod_init() [all …]
|
D | act_gact.c | 54 struct nlattr *est, struct tc_action **a, in tcf_gact_init() argument 99 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_gact_init() 101 ret = tcf_idr_create(tn, index, est, a, in tcf_gact_init() 112 tcf_idr_release(*a, bind); in tcf_gact_init() 122 gact = to_gact(*a); in tcf_gact_init() 125 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_gact_init() 144 tcf_idr_release(*a, bind); in tcf_gact_init() 148 static int tcf_gact_act(struct sk_buff *skb, const struct tc_action *a, in tcf_gact_act() argument 151 struct tcf_gact *gact = to_gact(a); in tcf_gact_act() 171 static void tcf_gact_stats_update(struct tc_action *a, u64 bytes, u32 packets, in tcf_gact_stats_update() argument [all …]
|
/net/netfilter/ipset/ |
D | Kconfig | 12 To compile it as a module, choose M here. If unsure, say N. 33 can store IPv4 addresses (or network addresse) from a range. 35 To compile it as a module, choose M here. If unsure, say N. 42 can store IPv4 address and (source) MAC address pairs from a range. 44 To compile it as a module, choose M here. If unsure, say N. 51 can store TCP/UDP port numbers from a range. 53 To compile it as a module, choose M here. If unsure, say N. 61 in a set. 63 To compile it as a module, choose M here. If unsure, say N. 72 To compile it as a module, choose M here. If unsure, say N. [all …]
|
/net/netfilter/ |
D | Kconfig | 64 Connection tracking keeps a record of what packets have passed 72 To compile it as a module, choose M here. If unsure, say N. 112 Normally, each connection needs to have a unique system wide 134 provide a notifier chain that can be used by other kernel code 215 To compile it as a module, choose M here. If unsure, say N. 227 To compile it as a module, choose M here. If unsure, say N. 234 H.323 is a VoIP signalling protocol from ITU-T. As one of the most 239 With this module you can support H.323 on a connection tracking/NAT 247 To compile it as a module, choose M here. If unsure, say N. 253 There is a commonly-used extension to IRC called [all …]
|
/net/ |
D | compat.c | 722 u32 a[AUDITSC_ARGS]; in COMPAT_SYSCALL_DEFINE2() local 730 if (len > sizeof(a)) in COMPAT_SYSCALL_DEFINE2() 733 if (copy_from_user(a, args, len)) in COMPAT_SYSCALL_DEFINE2() 736 ret = audit_socketcall_compat(len / sizeof(a[0]), a); in COMPAT_SYSCALL_DEFINE2() 740 a0 = a[0]; in COMPAT_SYSCALL_DEFINE2() 741 a1 = a[1]; in COMPAT_SYSCALL_DEFINE2() 745 ret = __sys_socket(a0, a1, a[2]); in COMPAT_SYSCALL_DEFINE2() 748 ret = __sys_bind(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2() 751 ret = __sys_connect(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2() 757 ret = __sys_accept4(a0, compat_ptr(a1), compat_ptr(a[2]), 0); in COMPAT_SYSCALL_DEFINE2() [all …]
|
/net/ipv4/netfilter/ |
D | Kconfig | 67 To compile it as a module, choose M here. 100 SNMP payloads. In conjunction with NAT, it allows a network 107 To compile it as a module, choose M here. If unsure, say N. 126 iptables is a general, extensible packet identification framework. 131 To compile it as a module, choose M here. If unsure, say N. 140 This match extension allows you to match a range of SPIs 143 To compile it as a module, choose M here. If unsure, say N. 150 This is a backwards-compat option for the user's convenience 162 To compile it as a module, choose M here. If unsure, say N. 170 This is a backwards-compat option for the user's convenience [all …]
|
/net/bridge/netfilter/ |
D | Kconfig | 35 Connection tracking keeps a record of what packets have passed 39 the bridge. This provides a replacement for the `br_netfilter' 42 To compile it as a module, choose M here. If unsure, say N. 49 ebtables is a general, extensible frame/packet identification 62 bridging and routing frames, giving Linux the functionality of a 66 To compile it as a module, choose M here. If unsure, say N. 75 To compile it as a module, choose M here. If unsure, say N. 84 To compile it as a module, choose M here. If unsure, say N. 93 To compile it as a module, choose M here. If unsure, say N. 99 and/or destination address on a list of addresses. Optionally, [all …]
|
/net/dccp/ccids/lib/ |
D | tfrc.h | 21 #define tfrc_pr_debug(format, a...) DCCP_PR_DEBUG(tfrc_debug, format, ##a) argument 23 #define tfrc_pr_debug(format, a...) argument 27 static inline u64 scaled_div(u64 a, u64 b) in scaled_div() argument 30 return div64_u64(a * 1000000, b); in scaled_div() 33 static inline u32 scaled_div32(u64 a, u64 b) in scaled_div32() argument 35 u64 result = scaled_div(a, b); in scaled_div32() 39 (unsigned long long)a, (unsigned long long)b); in scaled_div32()
|
/net/ipv6/netfilter/ |
D | Kconfig | 56 To compile it as a module, choose M here. 80 ip6tables is a general, extensible packet identification framework. 85 To compile it as a module, choose M here. If unsure, say N. 96 To compile it as a module, choose M here. If unsure, say N. 106 To compile it as a module, choose M here. If unsure, say N. 115 To compile it as a module, choose M here. If unsure, say N. 122 and destination options headers of a packet. 124 To compile it as a module, choose M here. If unsure, say N. 131 This is a backwards-compat option for the user's convenience 142 To compile it as a module, choose M here. If unsure, say N. [all …]
|
/net/6lowpan/ |
D | iphc.c | 98 #define is_addr_mac_addr_based(a, m) \ argument 99 ((((a)->s6_addr[8]) == (((m)[0]) ^ 0x02)) && \ 100 (((a)->s6_addr[9]) == (m)[1]) && \ 101 (((a)->s6_addr[10]) == (m)[2]) && \ 102 (((a)->s6_addr[11]) == (m)[3]) && \ 103 (((a)->s6_addr[12]) == (m)[4]) && \ 104 (((a)->s6_addr[13]) == (m)[5]) && \ 105 (((a)->s6_addr[14]) == (m)[6]) && \ 106 (((a)->s6_addr[15]) == (m)[7])) 111 #define lowpan_is_iid_16_bit_compressable(a) \ argument [all …]
|