/Linux-v5.4/net/bridge/ |
D | br_fdb.c | 636 struct ndmsg *ndm; in fdb_fill_info() local 638 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info() 642 ndm = nlmsg_data(nlh); in fdb_fill_info() 643 ndm->ndm_family = AF_BRIDGE; in fdb_fill_info() 644 ndm->ndm_pad1 = 0; in fdb_fill_info() 645 ndm->ndm_pad2 = 0; in fdb_fill_info() 646 ndm->ndm_flags = 0; in fdb_fill_info() 647 ndm->ndm_type = 0; in fdb_fill_info() 648 ndm->ndm_ifindex = fdb->dst ? fdb->dst->dev->ifindex : br->dev->ifindex; in fdb_fill_info() 649 ndm->ndm_state = fdb_to_nud(br, fdb); in fdb_fill_info() [all …]
|
D | br_private.h | 571 int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[],
|
/Linux-v5.4/net/core/ |
D | neighbour.c | 1791 struct ndmsg *ndm; in neigh_delete() local 1799 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete() 1802 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete() 1808 ndm = nlmsg_data(nlh); in neigh_delete() 1809 if (ndm->ndm_ifindex) { in neigh_delete() 1810 dev = __dev_get_by_index(net, ndm->ndm_ifindex); in neigh_delete() 1817 tbl = neigh_find_table(ndm->ndm_family); in neigh_delete() 1826 if (ndm->ndm_flags & NTF_PROXY) { in neigh_delete() 1858 struct ndmsg *ndm; in neigh_add() local 1868 err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), tb, NDA_MAX, in neigh_add() [all …]
|
D | rtnetlink.c | 3553 struct ndmsg *ndm; in nlmsg_populate_fdb_fill() local 3555 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ndm), nlflags); in nlmsg_populate_fdb_fill() 3559 ndm = nlmsg_data(nlh); in nlmsg_populate_fdb_fill() 3560 ndm->ndm_family = AF_BRIDGE; in nlmsg_populate_fdb_fill() 3561 ndm->ndm_pad1 = 0; in nlmsg_populate_fdb_fill() 3562 ndm->ndm_pad2 = 0; in nlmsg_populate_fdb_fill() 3563 ndm->ndm_flags = flags; in nlmsg_populate_fdb_fill() 3564 ndm->ndm_type = 0; in nlmsg_populate_fdb_fill() 3565 ndm->ndm_ifindex = dev->ifindex; in nlmsg_populate_fdb_fill() 3566 ndm->ndm_state = ndm_state; in nlmsg_populate_fdb_fill() [all …]
|
/Linux-v5.4/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.4/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 | 1373 int (*ndo_fdb_add)(struct ndmsg *ndm, 1380 int (*ndo_fdb_del)(struct ndmsg *ndm,
|
/Linux-v5.4/drivers/staging/fsl-dpaa2/ethsw/ |
D | ethsw.c | 314 static int port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in port_fdb_add() argument 327 static int port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in port_fdb_del() argument 566 struct ndmsg *ndm; in ethsw_fdb_do_dump() local 572 sizeof(*ndm), NLM_F_MULTI); in ethsw_fdb_do_dump() 576 ndm = nlmsg_data(nlh); in ethsw_fdb_do_dump() 577 ndm->ndm_family = AF_BRIDGE; in ethsw_fdb_do_dump() 578 ndm->ndm_pad1 = 0; in ethsw_fdb_do_dump() 579 ndm->ndm_pad2 = 0; in ethsw_fdb_do_dump() 580 ndm->ndm_flags = NTF_SELF; in ethsw_fdb_do_dump() 581 ndm->ndm_type = 0; in ethsw_fdb_do_dump() [all …]
|
/Linux-v5.4/net/dsa/ |
D | slave.c | 202 struct ndmsg *ndm; in dsa_slave_port_fdb_do_dump() local 208 sizeof(*ndm), NLM_F_MULTI); in dsa_slave_port_fdb_do_dump() 212 ndm = nlmsg_data(nlh); in dsa_slave_port_fdb_do_dump() 213 ndm->ndm_family = AF_BRIDGE; in dsa_slave_port_fdb_do_dump() 214 ndm->ndm_pad1 = 0; in dsa_slave_port_fdb_do_dump() 215 ndm->ndm_pad2 = 0; in dsa_slave_port_fdb_do_dump() 216 ndm->ndm_flags = NTF_SELF; in dsa_slave_port_fdb_do_dump() 217 ndm->ndm_type = 0; in dsa_slave_port_fdb_do_dump() 218 ndm->ndm_ifindex = dump->dev->ifindex; in dsa_slave_port_fdb_do_dump() 219 ndm->ndm_state = is_static ? NUD_NOARP : NUD_REACHABLE; in dsa_slave_port_fdb_do_dump() [all …]
|
D | dsa_priv.h | 89 int dsa_legacy_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], 94 int dsa_legacy_fdb_del(struct ndmsg *ndm, struct nlattr *tb[],
|
/Linux-v5.4/drivers/net/ethernet/mscc/ |
D | ocelot.c | 768 static int ocelot_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_fdb_add() argument 794 static int ocelot_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in ocelot_fdb_del() argument 817 struct ndmsg *ndm; in ocelot_fdb_do_dump() local 823 sizeof(*ndm), NLM_F_MULTI); in ocelot_fdb_do_dump() 827 ndm = nlmsg_data(nlh); in ocelot_fdb_do_dump() 828 ndm->ndm_family = AF_BRIDGE; in ocelot_fdb_do_dump() 829 ndm->ndm_pad1 = 0; in ocelot_fdb_do_dump() 830 ndm->ndm_pad2 = 0; in ocelot_fdb_do_dump() 831 ndm->ndm_flags = NTF_SELF; in ocelot_fdb_do_dump() 832 ndm->ndm_type = 0; in ocelot_fdb_do_dump() [all …]
|
/Linux-v5.4/drivers/net/ |
D | vxlan.c | 255 struct ndmsg *ndm; in vxlan_fdb_info() local 258 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info() 262 ndm = nlmsg_data(nlh); in vxlan_fdb_info() 263 memset(ndm, 0, sizeof(*ndm)); in vxlan_fdb_info() 270 ndm->ndm_family = send_ip ? rdst->remote_ip.sa.sa_family : AF_INET; in vxlan_fdb_info() 272 ndm->ndm_family = AF_BRIDGE; in vxlan_fdb_info() 273 ndm->ndm_state = fdb->state; in vxlan_fdb_info() 274 ndm->ndm_ifindex = vxlan->dev->ifindex; in vxlan_fdb_info() 275 ndm->ndm_flags = fdb->flags; in vxlan_fdb_info() 277 ndm->ndm_flags |= NTF_OFFLOADED; in vxlan_fdb_info() [all …]
|
D | macvlan.c | 969 static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_add() argument 995 static int macvlan_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in macvlan_fdb_del() argument
|
/Linux-v5.4/drivers/net/ethernet/intel/ice/ |
D | ice_main.c | 3360 ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], in ice_fdb_add() argument 3370 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in ice_fdb_add() 3398 ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[], in ice_fdb_del() argument 3404 if (ndm->ndm_state & NUD_PERMANENT) { in ice_fdb_del()
|
/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_main.c | 372 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_del() argument 380 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid); in qlcnic_fdb_del() 397 static int qlcnic_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in qlcnic_fdb_add() argument 406 return ndo_dflt_fdb_add(ndm, tb, netdev, addr, vid, flags); in qlcnic_fdb_add()
|
/Linux-v5.4/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 2489 static int igb_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in igb_ndo_fdb_add() argument 2504 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in igb_ndo_fdb_add()
|
/Linux-v5.4/drivers/net/ethernet/intel/i40e/ |
D | i40e_main.c | 12283 static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in i40e_ndo_fdb_add() argument 12304 if (ndm->ndm_state && !(ndm->ndm_state & NUD_PERMANENT)) { in i40e_ndo_fdb_add()
|
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 9904 static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], in ixgbe_ndo_fdb_add() argument 9919 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags); in ixgbe_ndo_fdb_add()
|