Home
last modified time | relevance | path

Searched refs:ndm (Results 1 – 18 of 18) sorted by relevance

/linux-6.3-rc2/net/bridge/
A Dbr_fdb.c107 struct ndmsg *ndm; in fdb_fill_info() local
114 ndm = nlmsg_data(nlh); in fdb_fill_info()
115 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info()
116 ndm->ndm_pad1 = 0; in fdb_fill_info()
117 ndm->ndm_pad2 = 0; in fdb_fill_info()
118 ndm->ndm_flags = 0; in fdb_fill_info()
119 ndm->ndm_type = 0; in fdb_fill_info()
124 ndm->ndm_flags |= NTF_OFFLOADED; in fdb_fill_info()
128 ndm->ndm_flags |= NTF_STICKY; in fdb_fill_info()
1028 u16 state = ndm->ndm_state; in fdb_add_entry()
[all …]
A Dbr_private.h816 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
819 int br_fdb_delete_bulk(struct ndmsg *ndm, struct nlattr *tb[],
/linux-6.3-rc2/net/mctp/
A Dneigh.c121 struct ndmsg *ndm; in mctp_rtm_newneigh() local
128 rc = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, nd_mctp_policy, in mctp_rtm_newneigh()
154 ndm = nlmsg_data(nlh); in mctp_rtm_newneigh()
156 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in mctp_rtm_newneigh()
180 struct ndmsg *ndm; in mctp_rtm_delneigh() local
184 rc = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, nd_mctp_policy, in mctp_rtm_delneigh()
197 ndm = nlmsg_data(nlh); in mctp_rtm_delneigh()
198 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in mctp_rtm_delneigh()
/linux-6.3-rc2/net/core/
A Dneighbour.c1918 struct ndmsg *ndm; in neigh_delete() local
1985 struct ndmsg *ndm; in neigh_add() local
2588 struct ndmsg *ndm; in neigh_fill_info() local
2599 ndm->ndm_pad1 = 0; in neigh_fill_info()
2649 struct ndmsg *ndm; in pneigh_fill_info() local
2824 struct ndmsg *ndm; in neigh_valid_dump_req() local
2832 if (ndm->ndm_pad1 || ndm->ndm_pad2 || ndm->ndm_ifindex || in neigh_valid_dump_req()
2833 ndm->ndm_state || ndm->ndm_type) { in neigh_valid_dump_req()
2928 struct ndmsg *ndm; in neigh_valid_get_req() local
2937 if (ndm->ndm_pad1 || ndm->ndm_pad2 || ndm->ndm_state || in neigh_valid_get_req()
[all …]
A Drtnetlink.c4046 struct ndmsg *ndm; in nlmsg_populate_fdb_fill() local
4121 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in ndo_dflt_fdb_add()
4175 struct ndmsg *ndm; in rtnl_fdb_add() local
4218 if ((!ndm->ndm_flags || ndm->ndm_flags & NTF_MASTER) && in rtnl_fdb_add()
4292 struct ndmsg *ndm; in rtnl_fdb_del() local
4344 if ((!ndm->ndm_flags || ndm->ndm_flags & NTF_MASTER) && in rtnl_fdb_del()
4458 struct ndmsg *ndm; in valid_fdb_dump_strict() local
4467 if (ndm->ndm_pad1 || ndm->ndm_pad2 || ndm->ndm_state || in valid_fdb_dump_strict()
4468 ndm->ndm_flags || ndm->ndm_type) { in valid_fdb_dump_strict()
4647 struct ndmsg *ndm; in valid_fdb_get_strict() local
[all …]
/linux-6.3-rc2/include/trace/events/
A Dbridge.h14 TP_PROTO(struct ndmsg *ndm, struct net_device *dev,
17 TP_ARGS(ndm, dev, addr, vid, nlh_flags),
32 __entry->ndm_flags = ndm->ndm_flags;
/linux-6.3-rc2/include/linux/
A Drtnetlink.h120 extern int ndo_dflt_fdb_add(struct ndmsg *ndm,
126 extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
A Dnetdevice.h1543 int (*ndo_fdb_add)(struct ndmsg *ndm,
1550 int (*ndo_fdb_del)(struct ndmsg *ndm,
1555 int (*ndo_fdb_del_bulk)(struct ndmsg *ndm,
/linux-6.3-rc2/drivers/net/ethernet/mscc/
A Docelot_net.c730 static int ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_add() argument
764 struct ndmsg *ndm; in ocelot_port_fdb_do_dump() local
770 sizeof(*ndm), NLM_F_MULTI); in ocelot_port_fdb_do_dump()
774 ndm = nlmsg_data(nlh); in ocelot_port_fdb_do_dump()
775 ndm->ndm_family = AF_BRIDGE; in ocelot_port_fdb_do_dump()
776 ndm->ndm_pad1 = 0; in ocelot_port_fdb_do_dump()
777 ndm->ndm_pad2 = 0; in ocelot_port_fdb_do_dump()
778 ndm->ndm_flags = NTF_SELF; in ocelot_port_fdb_do_dump()
779 ndm->ndm_type = 0; in ocelot_port_fdb_do_dump()
780 ndm->ndm_ifindex = dump->dev->ifindex; in ocelot_port_fdb_do_dump()
[all …]
/linux-6.3-rc2/drivers/net/vxlan/
A Dvxlan_core.c207 struct ndmsg *ndm; in vxlan_fdb_info() local
215 ndm = nlmsg_data(nlh); in vxlan_fdb_info()
216 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info()
233 ndm->ndm_family = nh_family; in vxlan_fdb_info()
237 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info()
238 ndm->ndm_state = fdb->state; in vxlan_fdb_info()
239 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
240 ndm->ndm_flags = fdb->flags; in vxlan_fdb_info()
242 ndm->ndm_flags |= NTF_OFFLOADED; in vxlan_fdb_info()
243 ndm->ndm_type = RTN_UNICAST; in vxlan_fdb_info()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-switch.c787 struct ndmsg *ndm; in dpaa2_switch_fdb_dump_nl() local
793 sizeof(*ndm), NLM_F_MULTI); in dpaa2_switch_fdb_dump_nl()
797 ndm = nlmsg_data(nlh); in dpaa2_switch_fdb_dump_nl()
798 ndm->ndm_family = AF_BRIDGE; in dpaa2_switch_fdb_dump_nl()
799 ndm->ndm_pad1 = 0; in dpaa2_switch_fdb_dump_nl()
800 ndm->ndm_pad2 = 0; in dpaa2_switch_fdb_dump_nl()
801 ndm->ndm_flags = NTF_SELF; in dpaa2_switch_fdb_dump_nl()
802 ndm->ndm_type = 0; in dpaa2_switch_fdb_dump_nl()
803 ndm->ndm_ifindex = dump->dev->ifindex; in dpaa2_switch_fdb_dump_nl()
804 ndm->ndm_state = is_dynamic ? NUD_REACHABLE : NUD_NOARP; in dpaa2_switch_fdb_dump_nl()
/linux-6.3-rc2/net/dsa/
A Dslave.c449 struct ndmsg *ndm; in dsa_slave_port_fdb_do_dump() local
455 sizeof(*ndm), NLM_F_MULTI); in dsa_slave_port_fdb_do_dump()
459 ndm = nlmsg_data(nlh); in dsa_slave_port_fdb_do_dump()
460 ndm->ndm_family = AF_BRIDGE; in dsa_slave_port_fdb_do_dump()
461 ndm->ndm_pad1 = 0; in dsa_slave_port_fdb_do_dump()
462 ndm->ndm_pad2 = 0; in dsa_slave_port_fdb_do_dump()
463 ndm->ndm_flags = NTF_SELF; in dsa_slave_port_fdb_do_dump()
464 ndm->ndm_type = 0; in dsa_slave_port_fdb_do_dump()
465 ndm->ndm_ifindex = dump->dev->ifindex; in dsa_slave_port_fdb_do_dump()
466 ndm->ndm_state = is_static ? NUD_NOARP : NUD_REACHABLE; in dsa_slave_port_fdb_do_dump()
/linux-6.3-rc2/drivers/net/
A Dmacvlan.c995 static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_add() argument
1021 static int macvlan_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_del() argument
/linux-6.3-rc2/drivers/net/ethernet/qlogic/qlcnic/
A Dqlcnic_main.c369 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_del() argument
378 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid); in qlcnic_fdb_del()
395 static int qlcnic_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_add() argument
404 return ndo_dflt_fdb_add(ndm, tb, netdev, addr, vid, flags); in qlcnic_fdb_add()
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/
A Dice_main.c5979 ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], in ice_fdb_add() argument
5989 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in ice_fdb_add()
6018 ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[], in ice_fdb_del() argument
6024 if (ndm->ndm_state & NUD_PERMANENT) { in ice_fdb_del()
/linux-6.3-rc2/drivers/net/ethernet/intel/igb/
A Digb_main.c2513 static int igb_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in igb_ndo_fdb_add() argument
2528 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in igb_ndo_fdb_add()
/linux-6.3-rc2/drivers/net/ethernet/intel/i40e/
A Di40e_main.c13091 static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in i40e_ndo_fdb_add() argument
13112 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in i40e_ndo_fdb_add()
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_main.c9947 static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ixgbe_ndo_fdb_add() argument
9962 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in ixgbe_ndo_fdb_add()

Completed in 146 milliseconds