/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_flower_port_range.sh | 79 local sip=$1; shift 95 flower src_ip $sip dst_ip $dip ip_proto $ip_proto \ 100 flower src_ip $sip dst_ip $dip ip_proto $ip_proto \ 105 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 112 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 119 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 128 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 130 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 132 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 134 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ [all …]
|
H A D | tc_flower_l2_miss.sh | 75 local sip=192.0.2.1 81 flower indev $swp1 l2_miss 1 dst_mac $dmac src_ip $sip \ 85 flower indev $swp1 l2_miss 0 dst_mac $dmac src_ip $sip \ 89 $MZ $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q 100 $MZ $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q 111 $MZ $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q 128 local sip=$1; shift 138 flower indev $swp1 l2_miss 1 src_ip $sip dst_ip $dip \ 142 flower indev $swp1 l2_miss 0 src_ip $sip dst_ip $dip \ 146 $MZ $mode $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q [all …]
|
H A D | mirror_lib.sh | 33 local sip=$1; shift 52 $MZ $proto $vrf_name ${sip:+-A $sip} -B $dip -a own -b bc -q \
|
H A D | sch_ets_core.sh | 69 sip() function 85 start_traffic $h1.1$i $(sip $i) $(dip $i) $dst_mac 171 vlan_create $h1 1$i v$h1 $(sip $i)/28
|
H A D | lib.sh | 1702 local sip=$1; shift 1707 $MZ $h_in -p $pktsize -A $sip -B $dip -c 0 \ 1716 local sip=$1; shift 1721 __start_traffic $pktsize udp "$h_in" "$sip" "$dip" "$dmac" \ 1729 local sip=$1; shift 1734 __start_traffic $pktsize tcp "$h_in" "$sip" "$dip" "$dmac" \ 1741 local sip=$1; shift 1746 start_traffic_pktsize 8000 "$h_in" "$sip" "$dip" "$dmac" \ 1753 local sip=$1; shift 1758 start_tcp_traffic_pktsize 8000 "$h_in" "$sip" "$dip" "$dmac" \
|
H A D | router.sh | 237 local sip=$1; shift 247 create_mcast_sg $rp1 $sip $dip $rp2 257 delete_mcast_sg $rp1 $sip $dip $rp2
|
/linux/drivers/iio/imu/st_lsm6dsx/ |
H A D | st_lsm6dsx_buffer.c | 146 u8 sip = sensor->odr / min_odr; in st_lsm6dsx_get_sip() local 148 return sip > 1 ? round_down(sip, 2) : sip; in st_lsm6dsx_get_sip() 155 u16 sip = 0, ts_sip = 0; in st_lsm6dsx_update_decimators() local 171 sensor->sip = st_lsm6dsx_get_sip(sensor, min_odr); in st_lsm6dsx_update_decimators() 174 sensor->sip = 0; in st_lsm6dsx_update_decimators() 177 ts_sip = max_t(u16, ts_sip, sensor->sip); in st_lsm6dsx_update_decimators() 189 sip += sensor->sip; in st_lsm6dsx_update_decimators() 191 hw->sip = sip + ts_sip; in st_lsm6dsx_update_decimators() 262 if (!hw->sip) in st_lsm6dsx_update_watermark() 280 fifo_watermark = max_t(u16, fifo_watermark, hw->sip); in st_lsm6dsx_update_watermark() [all …]
|
/linux/drivers/scsi/ |
H A D | scsi_debug.c | 581 static void sdebug_erase_store(int idx, struct sdeb_store_info *sip); 1234 static void *lba2fake_store(struct sdeb_store_info *sip, in lba2fake_store() argument 1237 struct sdeb_store_info *lsip = sip; in lba2fake_store() 1240 if (!sip || !sip->storep) { in lba2fake_store() 1247 static struct t10_pi_tuple *dif_store(struct sdeb_store_info *sip, in dif_store() argument 1252 return sip->dif_storep + sector; in dif_store() 3467 sdeb_data_read_lock(struct sdeb_store_info *sip) in sdeb_data_read_lock() argument 3469 BUG_ON(!sip); in sdeb_data_read_lock() 3471 sdeb_read_lock(&sip->macc_data_lck); in sdeb_data_read_lock() 3475 sdeb_data_read_unlock(struct sdeb_store_info *sip) in sdeb_data_read_unlock() argument [all …]
|
/linux/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-platform-isys-csi2-reg.h | 148 #define CSI2_HUB_GPREG_SIP_SRST(sip) (0x238038 + (sip) * 4) argument 149 #define CSI2_HUB_GPREG_SIP_FB_PORT_CFG(sip) (0x238050 + (sip) * 4) argument 161 #define CSI2_SIP_TOP_CSI_RX_BASE(sip) (0x23805c + (sip) * 0x48) argument
|
/linux/net/ipv4/ |
H A D | arp.c | 396 static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip) in arp_ignore() argument 405 sip = 0; in arp_ignore() 415 sip = 0; in arp_ignore() 429 return !inet_confirm_addr(net, in_dev, sip, tip, scope); in arp_ignore() 432 static int arp_accept(struct in_device *in_dev, __be32 sip) in arp_accept() argument 446 return !!inet_confirm_addr(net, in_dev, sip, 0, scope); in arp_accept() 452 static int arp_filter(__be32 sip, __be32 tip, struct net_device *dev) in arp_filter() argument 459 rt = ip_route_output(net, sip, tip, 0, l3mdev_master_ifindex_rcu(dev), in arp_filter() 521 __be32 sip, __be32 tip) in arp_fwd_pvlan() argument 528 if (sip == tip) in arp_fwd_pvlan() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_tunnel_ipip.sh | 187 local sip=$1; shift 200 -A $sip -B 192.0.2.65 -t ip len=48,proto=47,p=$payload -q & 217 local sip=192.0.2.66 226 "Decap error: Key exists but was not expected" $sip "2" \ 237 "Decap error: Key does not exist but was expected" $sip "0" 239 "Decap error: Packet has a wrong key field" $sip "2" \
|
H A D | devlink_trap_tunnel_ipip6.sh | 187 local sip=$1; shift 200 -A $sip -B 2001:db8:3::1 -t ip next=47,p=$payload -q & 217 local sip=2001:db8:3::2 226 "Decap error: Key exists but was not expected" $sip "2" \ 238 "Decap error: Key does not exist but was expected" $sip "0" 240 "Decap error: Packet has a wrong key field" $sip "2" \
|
H A D | devlink_trap_l3_drops.sh | 228 local sip=$1; shift 239 flower src_ip $sip action drop 242 $MZ $h1 $flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -A $sip \ 297 local sip=$1; shift 308 flower src_ip $sip action drop 311 $MZ $h1 $flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -A $sip \ 331 local sip=255.255.255.255 339 flower src_ip $sip action drop 342 $MZ $h1 -t udp "sp=54321,dp=12345" -c 0 -p 100 -A $sip -b $rp1mac \
|
H A D | qos_dscp_bridge.sh | 125 local sip=$1; shift 143 ${PING} -Q $dscp_10 ${sip:+-I $sip} $dip \
|
H A D | qos_dscp_router.sh | 157 local sip=$1; shift 179 ${PING} -Q $dscp ${sip:+-I $sip} $dip \
|
H A D | mirror_gre_scale.sh | 123 local sip=$(mirror_gre_ipv6_addr 1 $i)::1 129 mirror_test v$h1 $sip $dip $htun 100 10
|
/linux/tools/testing/selftests/net/ |
H A D | test_bridge_neigh_suppress.sh | 292 local sip=$1; shift 301 …ess pref 1 handle 101 proto 0x0806 flower indev swp1 arp_tip $tip arp_sip $sip arp_op request acti… 305 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip" 316 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip" 327 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip" 337 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip" 347 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip" 361 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip" 371 run_cmd "ip netns exec $h1 arping -q -b -c 1 -w 5 -s $sip -I eth0.$vid $tip" 380 local sip=192.0.2.1 [all …]
|
/linux/net/bridge/ |
H A D | br_arp_nd_proxy.c | 133 __be32 sip, tip; in br_do_proxy_suppress_arp() local 151 memcpy(&sip, arpptr, sizeof(sip)); in br_do_proxy_suppress_arp() 152 arpptr += sizeof(sip); in br_do_proxy_suppress_arp() 165 (ipv4_is_zeronet(sip) || sip == tip)) { in br_do_proxy_suppress_arp() 208 br_arp_send(br, p, skb->dev, sip, tip, in br_do_proxy_suppress_arp() 211 br_arp_send(br, p, skb->dev, sip, tip, in br_do_proxy_suppress_arp()
|
/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_tc.c | 105 struct vcap_u128_key sip; in vcap_tc_flower_handler_ipv6_usage() local 111 vcap_netbytes_copy(sip.value, mt.key->src.s6_addr, 16); in vcap_tc_flower_handler_ipv6_usage() 112 vcap_netbytes_copy(sip.mask, mt.mask->src.s6_addr, 16); in vcap_tc_flower_handler_ipv6_usage() 114 VCAP_KF_L3_IP6_SIP, &sip); in vcap_tc_flower_handler_ipv6_usage() 359 if (mt.mask->sip) { in vcap_tc_flower_handler_arp_usage() 360 ipval = be32_to_cpu((__force __be32)mt.key->sip); in vcap_tc_flower_handler_arp_usage() 361 ipmsk = be32_to_cpu((__force __be32)mt.mask->sip); in vcap_tc_flower_handler_arp_usage()
|
/linux/net/bridge/netfilter/ |
H A D | ebt_among.c | 138 __be32 dip = 0, sip = 0; in ebt_among_mt() local 145 if (get_ip_src(skb, &sip)) in ebt_among_mt() 149 if (!ebt_mac_wormhash_contains(wh_src, smac, sip)) in ebt_among_mt() 153 if (ebt_mac_wormhash_contains(wh_src, smac, sip)) in ebt_among_mt()
|
/linux/drivers/gpu/drm/i915/pxp/ |
H A D | intel_pxp_session.c | 22 u32 sip = 0; in intel_pxp_session_is_in_play() local 26 sip = intel_uncore_read(uncore, KCR_SIP(pxp->kcr_base)); in intel_pxp_session_is_in_play() 28 return sip & BIT(id); in intel_pxp_session_is_in_play()
|
/linux/security/smack/ |
H A D | smack.h | 375 struct inode_smack *sip = smack_inode(isp); in smk_inode_transmutable() local 376 return (sip->smk_flags & SMK_INODE_TRANSMUTE) != 0; in smk_inode_transmutable() 384 struct inode_smack *sip = smack_inode(isp); in smk_of_inode() local 385 return sip->smk_inode; in smk_of_inode()
|
H A D | smack_lsm.c | 2480 static struct smack_known *smack_ipv4host_label(struct sockaddr_in *sip) in smack_ipv4host_label() argument 2483 struct in_addr *siap = &sip->sin_addr; in smack_ipv4host_label() 2507 static bool smk_ipv6_localhost(struct sockaddr_in6 *sip) in smk_ipv6_localhost() argument 2509 __be16 *be16p = (__be16 *)&sip->sin6_addr; in smk_ipv6_localhost() 2510 __be32 *be32p = (__be32 *)&sip->sin6_addr; in smk_ipv6_localhost() 2530 static struct smack_known *smack_ipv6host_label(struct sockaddr_in6 *sip) in smack_ipv6host_label() argument 2533 struct in6_addr *sap = &sip->sin6_addr; in smack_ipv6host_label() 2540 if (smk_ipv6_localhost(sip)) in smack_ipv6host_label() 3037 struct sockaddr_in6 *sip = (struct sockaddr_in6 *)sap; in smack_socket_connect() local 3043 rsp = smack_ipv6host_label(sip); in smack_socket_connect() [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | generate_udp_fragments.py | 63 sip = "0.0.0.0" 72 pkt = IP(src=sip,dst=dip) / UDP(sport=sport,dport=dport,chksum=0) / Raw(load=payload)
|
/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_vcap.c | 477 arp->sip.value.addr, arp->sip.mask.addr); in is2_entry_set() 490 struct ocelot_vcap_ipv4 sip, dip; in is2_entry_set() local 502 sip = ipv4->sip; in is2_entry_set() 524 val = ipv6->sip.value[i + 8]; in is2_entry_set() 525 msk = ipv6->sip.mask[i + 8]; in is2_entry_set() 530 sip.value.addr[i - 4] = val; in is2_entry_set() 531 sip.mask.addr[i - 4] = msk; in is2_entry_set() 561 sip.value.addr, sip.mask.addr); in is2_entry_set() 721 struct ocelot_vcap_ipv4 sip = ipv4->sip; in is1_entry_set() local 731 sip.value.addr, sip.mask.addr); in is1_entry_set()
|