Home
last modified time | relevance | path

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

/Linux-v5.10/net/bridge/
Dbr_fdb.c655 struct ndmsg *ndm; in fdb_fill_info() local
657 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info()
661 ndm = nlmsg_data(nlh); in fdb_fill_info()
662 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info()
663 ndm->ndm_pad1 = 0; in fdb_fill_info()
664 ndm->ndm_pad2 = 0; in fdb_fill_info()
665 ndm->ndm_flags = 0; in fdb_fill_info()
666 ndm->ndm_type = 0; in fdb_fill_info()
667 ndm->ndm_ifindex = fdb->dst ? fdb->dst->dev->ifindex : br->dev->ifindex; in fdb_fill_info()
668 ndm->ndm_state = fdb_to_nud(br, fdb); in fdb_fill_info()
[all …]
Dbr_private.h698 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
/Linux-v5.10/net/core/
Dneighbour.c1795 struct ndmsg *ndm; in neigh_delete() local
1803 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete()
1806 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete()
1812 ndm = nlmsg_data(nlh); in neigh_delete()
1813 if (ndm->ndm_ifindex) { in neigh_delete()
1814 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in neigh_delete()
1821 tbl = neigh_find_table(ndm->ndm_family); in neigh_delete()
1830 if (ndm->ndm_flags & NTF_PROXY) { in neigh_delete()
1862 struct ndmsg *ndm; in neigh_add() local
1872 err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), tb, NDA_MAX, in neigh_add()
[all …]
Drtnetlink.c3866 struct ndmsg *ndm; in nlmsg_populate_fdb_fill() local
3868 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags); in nlmsg_populate_fdb_fill()
3872 ndm = nlmsg_data(nlh); in nlmsg_populate_fdb_fill()
3873 ndm->ndm_family = AF_BRIDGE; in nlmsg_populate_fdb_fill()
3874 ndm->ndm_pad1 = 0; in nlmsg_populate_fdb_fill()
3875 ndm->ndm_pad2 = 0; in nlmsg_populate_fdb_fill()
3876 ndm->ndm_flags = flags; in nlmsg_populate_fdb_fill()
3877 ndm->ndm_type = 0; in nlmsg_populate_fdb_fill()
3878 ndm->ndm_ifindex = dev->ifindex; in nlmsg_populate_fdb_fill()
3879 ndm->ndm_state = ndm_state; in nlmsg_populate_fdb_fill()
[all …]
/Linux-v5.10/include/trace/events/
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-v5.10/include/linux/
Drtnetlink.h118 extern int ndo_dflt_fdb_add(struct ndmsg *ndm,
124 extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
Dnetdevice.h1417 int (*ndo_fdb_add)(struct ndmsg *ndm,
1424 int (*ndo_fdb_del)(struct ndmsg *ndm,
/Linux-v5.10/drivers/net/ethernet/mscc/
Docelot.c583 struct ndmsg *ndm; in ocelot_port_fdb_do_dump() local
589 sizeof(*ndm), NLM_F_MULTI); in ocelot_port_fdb_do_dump()
593 ndm = nlmsg_data(nlh); in ocelot_port_fdb_do_dump()
594 ndm->ndm_family = AF_BRIDGE; in ocelot_port_fdb_do_dump()
595 ndm->ndm_pad1 = 0; in ocelot_port_fdb_do_dump()
596 ndm->ndm_pad2 = 0; in ocelot_port_fdb_do_dump()
597 ndm->ndm_flags = NTF_SELF; in ocelot_port_fdb_do_dump()
598 ndm->ndm_type = 0; in ocelot_port_fdb_do_dump()
599 ndm->ndm_ifindex = dump->dev->ifindex; in ocelot_port_fdb_do_dump()
600 ndm->ndm_state = is_static ? NUD_NOARP : NUD_REACHABLE; in ocelot_port_fdb_do_dump()
Docelot_net.c513 static int ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_add() argument
526 static int ocelot_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_port_fdb_del() argument
/Linux-v5.10/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c336 static int dpaa2_switch_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in dpaa2_switch_port_fdb_add() argument
349 static int dpaa2_switch_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in dpaa2_switch_port_fdb_del() argument
602 struct ndmsg *ndm; in dpaa2_switch_fdb_dump_nl() local
608 sizeof(*ndm), NLM_F_MULTI); in dpaa2_switch_fdb_dump_nl()
612 ndm = nlmsg_data(nlh); in dpaa2_switch_fdb_dump_nl()
613 ndm->ndm_family = AF_BRIDGE; in dpaa2_switch_fdb_dump_nl()
614 ndm->ndm_pad1 = 0; in dpaa2_switch_fdb_dump_nl()
615 ndm->ndm_pad2 = 0; in dpaa2_switch_fdb_dump_nl()
616 ndm->ndm_flags = NTF_SELF; in dpaa2_switch_fdb_dump_nl()
617 ndm->ndm_type = 0; in dpaa2_switch_fdb_dump_nl()
[all …]
/Linux-v5.10/net/dsa/
Ddsa_priv.h103 int dsa_legacy_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
108 int dsa_legacy_fdb_del(struct ndmsg *ndm, struct nlattr *tb[],
Dslave.c193 struct ndmsg *ndm; in dsa_slave_port_fdb_do_dump() local
199 sizeof(*ndm), NLM_F_MULTI); in dsa_slave_port_fdb_do_dump()
203 ndm = nlmsg_data(nlh); in dsa_slave_port_fdb_do_dump()
204 ndm->ndm_family = AF_BRIDGE; in dsa_slave_port_fdb_do_dump()
205 ndm->ndm_pad1 = 0; in dsa_slave_port_fdb_do_dump()
206 ndm->ndm_pad2 = 0; in dsa_slave_port_fdb_do_dump()
207 ndm->ndm_flags = NTF_SELF; in dsa_slave_port_fdb_do_dump()
208 ndm->ndm_type = 0; in dsa_slave_port_fdb_do_dump()
209 ndm->ndm_ifindex = dump->dev->ifindex; in dsa_slave_port_fdb_do_dump()
210 ndm->ndm_state = is_static ? NUD_NOARP : NUD_REACHABLE; in dsa_slave_port_fdb_do_dump()
[all …]
/Linux-v5.10/drivers/net/
Dvxlan.c266 struct ndmsg *ndm; in vxlan_fdb_info() local
270 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info()
274 ndm = nlmsg_data(nlh); in vxlan_fdb_info()
275 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info()
290 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info()
292 ndm->ndm_family = nh_family; in vxlan_fdb_info()
296 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info()
297 ndm->ndm_state = fdb->state; in vxlan_fdb_info()
298 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info()
299 ndm->ndm_flags = fdb->flags; in vxlan_fdb_info()
[all …]
Dmacvlan.c987 static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_add() argument
1013 static int macvlan_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_del() argument
/Linux-v5.10/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c371 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_del() argument
379 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid); in qlcnic_fdb_del()
396 static int qlcnic_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_add() argument
405 return ndo_dflt_fdb_add(ndm, tb, netdev, addr, vid, flags); in qlcnic_fdb_add()
/Linux-v5.10/drivers/net/ethernet/intel/ice/
Dice_main.c5001 ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], in ice_fdb_add() argument
5011 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in ice_fdb_add()
5039 ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[], in ice_fdb_del() argument
5045 if (ndm->ndm_state & NUD_PERMANENT) { in ice_fdb_del()
/Linux-v5.10/drivers/net/ethernet/intel/igb/
Digb_main.c2479 static int igb_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in igb_ndo_fdb_add() argument
2494 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in igb_ndo_fdb_add()
/Linux-v5.10/drivers/net/ethernet/intel/i40e/
Di40e_main.c12220 static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in i40e_ndo_fdb_add() argument
12241 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in i40e_ndo_fdb_add()
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c9796 static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ixgbe_ndo_fdb_add() argument
9811 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in ixgbe_ndo_fdb_add()