/Linux-v5.10/net/bridge/ |
D | br_fdb.c | 655 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 …]
|
D | br_private.h | 698 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
|
/Linux-v5.10/net/core/ |
D | neighbour.c | 1795 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 …]
|
D | rtnetlink.c | 3866 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/ |
D | bridge.h | 14 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/ |
D | rtnetlink.h | 118 extern int ndo_dflt_fdb_add(struct ndmsg *ndm, 124 extern int ndo_dflt_fdb_del(struct ndmsg *ndm,
|
D | netdevice.h | 1417 int (*ndo_fdb_add)(struct ndmsg *ndm, 1424 int (*ndo_fdb_del)(struct ndmsg *ndm,
|
/Linux-v5.10/drivers/net/ethernet/mscc/ |
D | ocelot.c | 583 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()
|
D | ocelot_net.c | 513 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/ |
D | ethsw.c | 336 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/ |
D | dsa_priv.h | 103 int dsa_legacy_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], 108 int dsa_legacy_fdb_del(struct ndmsg *ndm, struct nlattr *tb[],
|
D | slave.c | 193 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/ |
D | vxlan.c | 266 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 …]
|
D | macvlan.c | 987 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/ |
D | qlcnic_main.c | 371 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/ |
D | ice_main.c | 5001 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/ |
D | igb_main.c | 2479 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/ |
D | i40e_main.c | 12220 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/ |
D | ixgbe_main.c | 9796 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()
|