/linux-master/drivers/net/ |
H A D | bareudp.c | 573 static int bareudp_validate(struct nlattr *tb[], struct nlattr *data[], argument 659 struct nlattr *tb[]) 663 if (tb[IFLA_MTU]) { 664 err = dev_set_mtu(dev, nla_get_u32(tb[IFLA_MTU])); 680 struct nlattr *tb[], struct nlattr *data[], 694 err = bareudp_link_config(dev, tb); 658 bareudp_link_config(struct net_device *dev, struct nlattr *tb[]) argument 679 bareudp_newlink(struct net *net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|
H A D | dummy.c | 124 static int dummy_validate(struct nlattr *tb[], struct nlattr *data[], argument 127 if (tb[IFLA_ADDRESS]) { 128 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) 130 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
|
H A D | geneve.c | 1237 static int geneve_validate(struct nlattr *tb[], struct nlattr *data[], argument 1240 if (tb[IFLA_ADDRESS]) { 1241 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) { 1242 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_ADDRESS], 1247 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { 1248 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_ADDRESS], 1395 static int geneve_nl2info(struct nlattr *tb[], struct nlattr *data[], argument 1570 struct ip_tunnel_info *info, struct nlattr *tb[]) 1575 if (tb[IFLA_MTU]) { 1576 geneve_change_mtu(dev, nla_get_u32(tb[IFLA_MT 1569 geneve_link_config(struct net_device *dev, struct ip_tunnel_info *info, struct nlattr *tb[]) argument 1615 geneve_newlink(struct net *net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument 1686 geneve_changelink(struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument 1830 struct nlattr *tb[IFLA_MAX + 1]; local [all...] |
H A D | gtp.c | 1461 struct nlattr *tb[], struct nlattr *data[], 1568 static int gtp_validate(struct nlattr *tb[], struct nlattr *data[], argument 1460 gtp_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|
H A D | ifb.c | 375 static int ifb_validate(struct nlattr *tb[], struct nlattr *data[], argument 378 if (tb[IFLA_ADDRESS]) { 379 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) 381 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS])))
|
H A D | macsec.c | 3918 static int macsec_changelink(struct net_device *dev, struct nlattr *tb[], argument 4136 struct nlattr *tb[], struct nlattr *data[], 4146 if (!tb[IFLA_LINK]) 4148 real_dev = __dev_get_by_index(net, nla_get_u32(tb[IFLA_LINK])); 4264 static int macsec_validate_attr(struct nlattr *tb[], struct nlattr *data[], argument 4135 macsec_newlink(struct net *net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|
H A D | macvlan.c | 1023 static int macvlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument 1049 static int macvlan_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], argument 1305 static int macvlan_validate(struct nlattr *tb[], struct nlattr *data[], argument 1311 if (tb[IFLA_ADDRESS]) { 1312 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) 1314 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) 1442 struct nlattr *tb[], struct nlattr *data[], 1452 if (!tb[IFLA_LINK]) 1455 lowerdev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); 1465 if (!tb[IFLA_MT 1441 macvlan_common_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument 1566 macvlan_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument 1586 macvlan_changelink(struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument [all...] |
H A D | macvtap.c | 81 struct nlattr *tb[], struct nlattr *data[], 108 err = macvlan_common_newlink(src_net, dev, tb, data, extack); 80 macvtap_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|
/linux-master/drivers/net/bonding/ |
H A D | bond_netlink.c | 134 static int bond_validate(struct nlattr *tb[], struct nlattr *data[], argument 137 if (tb[IFLA_ADDRESS]) { 138 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) 140 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) 148 struct nlattr *tb[], struct nlattr *data[], 185 static int bond_changelink(struct net_device *bond_dev, struct nlattr *tb[], argument 568 struct nlattr *tb[], struct nlattr *data[], 573 err = bond_changelink(bond_dev, tb, data, extack); 146 bond_slave_changelink(struct net_device *bond_dev, struct net_device *slave_dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument 567 bond_newlink(struct net *src_net, struct net_device *bond_dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|
/linux-master/drivers/net/can/dev/ |
H A D | netlink.c | 52 static int can_validate(struct nlattr *tb[], struct nlattr *data[], argument 187 static int can_changelink(struct net_device *dev, struct nlattr *tb[], argument 628 struct nlattr *tb[], struct nlattr *data[], 627 can_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|
/linux-master/drivers/net/can/ |
H A D | vxcan.c | 176 struct nlattr *tb[], struct nlattr *data[], 183 struct nlattr *peer_tb[IFLA_MAX + 1], **tbp = tb; 239 if (tb[IFLA_IFNAME]) 240 nla_strscpy(dev->name, tb[IFLA_IFNAME], IFNAMSIZ); 175 vxcan_newlink(struct net *net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_debugfs.c | 55 static void *seq_tab_get_idx(struct seq_tab *tb, loff_t pos) argument 57 pos -= tb->skip_first; 58 return pos >= tb->rows ? NULL : &tb->data[pos * tb->width]; 63 struct seq_tab *tb = seq->private; local 65 if (tb->skip_first && *pos == 0) 68 return seq_tab_get_idx(tb, *pos); 84 const struct seq_tab *tb = seq->private; local 86 return tb [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 1362 T4_TRACE5(adapter->tb[txq->q.cntxt_id & 7],
|
/linux-master/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_main.c | 13065 * @tb: pointer to array of nladdr (unused) 13072 static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_main.c | 6072 * @tb: pointer to array of nladdr (unused) 6080 ice_fdb_add(struct ndmsg *ndm, struct nlattr __always_unused *tb[], argument 6112 * @tb: pointer to array of nladdr (unused) 6119 ice_fdb_del(struct ndmsg *ndm, __always_unused struct nlattr *tb[], argument
|
/linux-master/drivers/net/ethernet/intel/igb/ |
H A D | igb_main.c | 2486 static int igb_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument 2501 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags);
|
/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_main.c | 9957 static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument 9972 return ndo_dflt_fdb_add(ndm, tb, dev, addr, vid, flags);
|
/linux-master/drivers/net/ethernet/mscc/ |
H A D | ocelot_net.c | 730 static int ocelot_port_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument 744 static int ocelot_port_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], argument
|
/linux-master/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_main.c | 368 static int qlcnic_fdb_del(struct ndmsg *ndm, struct nlattr *tb[], argument 377 return ndo_dflt_fdb_del(ndm, tb, netdev, addr, vid); 394 static int qlcnic_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], argument 403 return ndo_dflt_fdb_add(ndm, tb, netdev, addr, vid, flags);
|
/linux-master/drivers/net/ethernet/qualcomm/rmnet/ |
H A D | rmnet_config.c | 121 struct nlattr *tb[], struct nlattr *data[], 132 if (!tb[IFLA_LINK]) { 137 real_dev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); 277 static int rmnet_rtnl_validate(struct nlattr *tb[], struct nlattr *data[], argument 296 static int rmnet_changelink(struct net_device *dev, struct nlattr *tb[], argument 120 rmnet_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|
/linux-master/drivers/net/ethernet/sun/ |
H A D | niu.c | 3561 struct tx_buff_info *tb = &rp->tx_buffs[idx]; local 3562 struct sk_buff *skb = tb->skb; 3575 np->ops->unmap_single(np->device, tb->mapping, 3581 tb->skb = NULL; 3588 tb = &rp->tx_buffs[idx]; 3589 BUG_ON(tb->skb != NULL); 3590 np->ops->unmap_page(np->device, tb->mapping,
|
/linux-master/drivers/net/fddi/skfp/ |
H A D | fplustm.c | 1057 struct s_fpmc *tb ; local 1072 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb++){ 1073 if (!tb->n) { /* not used */ 1075 slot = tb ; 1078 if (!ether_addr_equal((char *)&tb->a, (char *)own)) 1080 return tb; 1098 struct s_fpmc *tb ; local 1103 for (i = 0, tb = smc->hw.fp.mc.table ; i < FPMAX_MULTICAST ; i++, tb 1141 struct s_fpmc *tb ; local 1194 struct s_fpmc *tb ; local [all...] |
/linux-master/drivers/net/ipvlan/ |
H A D | ipvlan.h | 170 struct nlattr *tb[], struct nlattr *data[],
|
H A D | ipvlan_main.c | 442 struct nlattr *tb[], struct nlattr *data[], 485 static int ipvlan_nl_validate(struct nlattr *tb[], struct nlattr *data[], argument 535 struct nlattr *tb[], struct nlattr *data[], 544 if (!tb[IFLA_LINK]) 547 phy_dev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); 575 if (!tb[IFLA_MTU]) 441 ipvlan_nl_changelink(struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument 534 ipvlan_link_new(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|
H A D | ipvtap.c | 77 struct nlattr *tb[], struct nlattr *data[], 100 err = ipvlan_link_new(src_net, dev, tb, data, extack); 76 ipvtap_newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) argument
|