Home
last modified time | relevance | path

Searched refs:promisc (Results 1 – 25 of 68) sorted by relevance

123

/linux-6.15/net/bridge/
H A Dbr_input.c33 static int br_pass_frame_up(struct sk_buff *skb, bool promisc) in br_pass_frame_up() argument
68 BR_INPUT_SKB_CB(skb)->promisc = promisc; in br_pass_frame_up()
88 bool promisc; in br_handle_frame_finish() local
146 promisc = !!(br->dev->flags & IFF_PROMISC); in br_handle_frame_finish()
147 local_rcv = promisc; in br_handle_frame_finish()
226 return br_pass_frame_up(skb, promisc); in br_handle_frame_finish()
403 BR_INPUT_SKB_CB(skb)->promisc = false; in br_handle_frame()
H A Dbr_netfilter_hooks.c584 bool promisc = BR_INPUT_SKB_CB(skb)->promisc; in br_nf_local_in() local
590 if (promisc) { in br_nf_local_in()
/linux-6.15/tools/testing/selftests/net/forwarding/
H A Dbridge_vlan_aware.sh158 ip link set $h2 promisc on
193 ip link set $h2 promisc off
221 ip link set $h2 promisc on
234 ip link set $h2 promisc off
251 ip link set $h2 promisc on
287 ip link set $h2 promisc off
H A Dlib.sh1347 ip link set $host1_if promisc on
1397 ip link set $host1_if promisc off
1415 ip link set $host2_if promisc on
1433 ip link set $host2_if promisc off
2082 local promisc
2089 promisc=$(ip -j -d link show dev $dev | jq -r '.[].promiscuity')
2093 [[ $promisc == 1 ]] && echo "no" || echo "yes"
H A Dlocal_termination.sh188 ip link set dev $rcv_if_name promisc on
192 ip link set dev $rcv_if_name promisc off
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs.c57 struct mlx5e_promisc_table promisc; member
444 if (promisc) in mlx5e_enable_cvlan_filter()
455 if (promisc) in mlx5e_disable_cvlan_filter()
746 struct mlx5_flow_table *ft = fs->promisc.ft.t; in mlx5e_add_promisc_rule()
759 rule_p = &fs->promisc.rule; in mlx5e_add_promisc_rule()
772 struct mlx5e_flow_table *ft = &fs->promisc.ft; in mlx5e_create_promisc_table()
806 mlx5_del_flow_rules(fs->promisc.rule); in mlx5e_del_promisc_rule()
807 fs->promisc.rule = NULL; in mlx5e_del_promisc_rule()
812 if (!fs->promisc.ft.t) in mlx5e_destroy_promisc_table()
815 mlx5_destroy_flow_table(fs->promisc.ft.t); in mlx5e_destroy_promisc_table()
[all …]
H A Deswitch.c656 bool promisc, bool mc_promisc) in esw_apply_vport_rx_mode() argument
661 goto promisc; in esw_apply_vport_rx_mode()
676 goto promisc; in esw_apply_vport_rx_mode()
683 promisc: in esw_apply_vport_rx_mode()
684 if (IS_ERR_OR_NULL(vport->promisc_rule) != promisc) in esw_apply_vport_rx_mode()
687 if (promisc) { in esw_apply_vport_rx_mode()
/linux-6.15/drivers/net/ethernet/cisco/enic/
H A Denic_dev.c64 int broadcast, int promisc, int allmulti) in enic_dev_packet_filter() argument
70 multicast, broadcast, promisc, allmulti); in enic_dev_packet_filter()
H A Denic_dev.h32 int broadcast, int promisc, int allmulti);
H A Dvnic_dev.h130 int broadcast, int promisc, int allmulti);
/linux-6.15/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c297 bool promisc = BR_INPUT_SKB_CB(skb)->promisc; in nf_ct_bridge_in() local
301 if (promisc) { in nf_ct_bridge_in()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dfs.h137 void mlx5e_enable_cvlan_filter(struct mlx5e_flow_steering *fs, bool promisc);
138 void mlx5e_disable_cvlan_filter(struct mlx5e_flow_steering *fs, bool promisc);
/linux-6.15/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.c1192 bool promisc; in __rvu_npc_exact_cmd_rules_cnt_update() local
1195 promisc = table->promisc_mode[drop_mcam_idx]; in __rvu_npc_exact_cmd_rules_cnt_update()
1207 if (promisc) in __rvu_npc_exact_cmd_rules_cnt_update()
1471 bool *promisc; in rvu_npc_exact_promisc_disable() local
1486 promisc = &table->promisc_mode[drop_mcam_idx]; in rvu_npc_exact_promisc_disable()
1488 if (!*promisc) { in rvu_npc_exact_promisc_disable()
1494 *promisc = false; in rvu_npc_exact_promisc_disable()
1518 bool *promisc; in rvu_npc_exact_promisc_enable() local
1533 promisc = &table->promisc_mode[drop_mcam_idx]; in rvu_npc_exact_promisc_enable()
1535 if (*promisc) { in rvu_npc_exact_promisc_enable()
[all …]
/linux-6.15/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
H A Dhw_atl2.c431 bool promisc) in hw_atl2_hw_new_rx_filter_vlan_promisc() argument
433 u16 off_action = (!promisc && in hw_atl2_hw_new_rx_filter_vlan_promisc()
445 static void hw_atl2_hw_new_rx_filter_promisc(struct aq_hw_s *self, bool promisc) in hw_atl2_hw_new_rx_filter_promisc() argument
447 u16 off_action = promisc ? HW_ATL2_ACTION_DISABLE : HW_ATL2_ACTION_DROP; in hw_atl2_hw_new_rx_filter_promisc()
460 hw_atl2_hw_new_rx_filter_vlan_promisc(self, promisc | in hw_atl2_hw_new_rx_filter_promisc()
/linux-6.15/drivers/net/ethernet/wiznet/
H A Dw5300.c98 bool promisc; member
263 w5300_write(priv, W5300_S0_MR, priv->promisc ? in w5300_hw_start()
462 if (priv->promisc != set_promisc) { in w5300_set_rx_mode()
463 priv->promisc = set_promisc; in w5300_set_rx_mode()
H A Dw5100.c164 bool promisc; member
695 if (!priv->promisc) { in w5100_hw_start()
971 if (priv->promisc != set_promisc) { in w5100_set_rx_mode()
972 priv->promisc = set_promisc; in w5100_set_rx_mode()
/linux-6.15/drivers/net/ethernet/freescale/fman/
H A Dmac.h33 bool promisc; member
/linux-6.15/drivers/net/ethernet/i825xx/
H A Dsun3_82586.h239 unsigned char promisc; /* promisc-mode(0) , et al (1-7) */ member
H A Dsun3_82586.c428 cfg_cmd->promisc = 0; in init586()
433 cfg_cmd->promisc = 1; in init586()
437 cfg_cmd->promisc = 1; in init586()
/linux-6.15/drivers/net/ethernet/mellanox/mlx4/
H A Dport.c1326 u32 promisc; in mlx4_common_set_port() local
1356 promisc = be32_to_cpu(qpn_context->promisc) >> in mlx4_common_set_port()
1358 qpn_context->promisc = cpu_to_be32( in mlx4_common_set_port()
1359 promisc << SET_PORT_PROMISC_SHIFT | in mlx4_common_set_port()
1361 promisc = be32_to_cpu(qpn_context->mcast) >> in mlx4_common_set_port()
1364 promisc << SET_PORT_MC_PROMISC_SHIFT | in mlx4_common_set_port()
1623 u8 promisc) in mlx4_SET_PORT_qpn_calc() argument
1641 context->promisc = cpu_to_be32(promisc << SET_PORT_PROMISC_SHIFT | in mlx4_SET_PORT_qpn_calc()
/linux-6.15/drivers/scsi/fnic/
H A Dvnic_dev.h124 int broadcast, int promisc, int allmulti);
/linux-6.15/drivers/net/ethernet/ti/
H A Dnetcp.h209 int (*set_rx_mode)(void *intf_priv, bool promisc);
H A Dnetcp_core.c1497 static int netcp_set_promiscuous(struct netcp_intf *netcp, bool promisc) in netcp_set_promiscuous() argument
1508 error = module->set_rx_mode(priv->module_priv, promisc); in netcp_set_promiscuous()
1519 bool promisc; in netcp_set_rx_mode() local
1521 promisc = (ndev->flags & IFF_PROMISC || in netcp_set_rx_mode()
1538 if (promisc) in netcp_set_rx_mode()
1544 netcp_set_promiscuous(netcp, promisc); in netcp_set_rx_mode()
/linux-6.15/drivers/net/ethernet/alteon/
H A Dacenic.c2253 ap->promisc = 1; in ace_open()
2255 ap->promisc = 0; in ace_open()
2291 if (ap->promisc) { in ace_close()
2296 ap->promisc = 0; in ace_close()
2754 if ((dev->flags & IFF_PROMISC) && !(ap->promisc)) { in ace_set_multicast_list()
2759 ap->promisc = 1; in ace_set_multicast_list()
2760 }else if (!(dev->flags & IFF_PROMISC) && (ap->promisc)) { in ace_set_multicast_list()
2765 ap->promisc = 0; in ace_set_multicast_list()
/linux-6.15/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c821 unsigned char promisc[ETH_ALEN]; in bcmasp_set_promisc() local
823 eth_zero_addr(promisc); in bcmasp_set_promisc()
825 bcmasp_set_mda_filter(intf, promisc, promisc, i); in bcmasp_set_promisc()

123