Searched refs:netdev (Results 1 - 25 of 972) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/pensando/ionic/
H A Dionic_ethtool.h7 void ionic_ethtool_set_ops(struct net_device *netdev);
/linux-master/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_ethtool.h7 void txgbe_set_ethtool_ops(struct net_device *netdev);
/linux-master/drivers/net/ethernet/wangxun/ngbe/
H A Dngbe_ethtool.h7 void ngbe_set_ethtool_ops(struct net_device *netdev);
/linux-master/tools/testing/selftests/net/
H A Dnetdevice.sh19 netdev=$1
21 ip link show "$netdev" |grep -q UP
23 echo "SKIP: $netdev: interface already up"
27 ip link set "$netdev" up
29 echo "FAIL: $netdev: Fail to up interface"
32 echo "PASS: $netdev: set interface up"
43 netdev=$1
51 ip link set dev $netdev address "$MACADDR"
53 echo "FAIL: $netdev: Cannot set MAC address"
55 ip link show $netdev |gre
[all...]
/linux-master/drivers/net/ethernet/wangxun/libwx/
H A Dwx_ethtool.h7 int wx_get_sset_count(struct net_device *netdev, int sset);
8 void wx_get_strings(struct net_device *netdev, u32 stringset, u8 *data);
9 void wx_get_ethtool_stats(struct net_device *netdev,
11 void wx_get_mac_stats(struct net_device *netdev,
13 void wx_get_pause_stats(struct net_device *netdev,
15 void wx_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *info);
16 int wx_nway_reset(struct net_device *netdev);
17 int wx_get_link_ksettings(struct net_device *netdev,
19 int wx_set_link_ksettings(struct net_device *netdev,
21 void wx_get_pauseparam(struct net_device *netdev,
[all...]
/linux-master/net/core/
H A Ddev_addr_lists_test.c15 static int dev_addr_test_sync(struct net_device *netdev, const unsigned char *a) argument
17 struct dev_addr_test_priv *datp = netdev_priv(netdev);
24 static int dev_addr_test_unsync(struct net_device *netdev, argument
27 struct dev_addr_test_priv *datp = netdev_priv(netdev);
37 struct net_device *netdev; local
40 netdev = alloc_etherdev(sizeof(*datp));
41 KUNIT_ASSERT_TRUE(test, !!netdev);
43 test->priv = netdev;
44 netdev->netdev_ops = &dummy_netdev_ops;
46 err = register_netdev(netdev);
58 struct net_device *netdev = test->priv; local
67 struct net_device *netdev = test->priv; local
83 struct net_device *netdev = test->priv; local
110 struct net_device *netdev = test->priv; local
150 struct net_device *netdev = test->priv; local
168 struct net_device *netdev = test->priv; local
198 struct net_device *netdev = test->priv; local
[all...]
H A Dnetdev-genl.c14 #include "netdev-genl-gen.h"
32 netdev_nl_dev_fill(struct net_device *netdev, struct sk_buff *rsp, argument
44 if (netdev->xdp_metadata_ops && netdev->xdp_metadata_ops->xmo) \
49 if (netdev->xsk_tx_metadata_ops) {
50 if (netdev->xsk_tx_metadata_ops->tmo_fill_timestamp)
52 if (netdev->xsk_tx_metadata_ops->tmo_request_checksum)
56 if (nla_put_u32(rsp, NETDEV_A_DEV_IFINDEX, netdev->ifindex) ||
58 netdev->xdp_features, NETDEV_A_DEV_PAD) ||
67 if (netdev
81 netdev_genl_dev_notify(struct net_device *netdev, int cmd) argument
107 struct net_device *netdev; local
145 struct net_device *netdev; local
237 netdev_nl_napi_dump_one(struct net_device *netdev, struct sk_buff *rsp, const struct genl_info *info, struct netdev_nl_dump_ctx *ctx) argument
264 struct net_device *netdev; local
292 netdev_nl_queue_fill_one(struct sk_buff *rsp, struct net_device *netdev, u32 q_idx, u32 q_type, const struct genl_info *info) argument
331 netdev_nl_queue_validate(struct net_device *netdev, u32 q_id, u32 q_type) argument
347 netdev_nl_queue_fill(struct sk_buff *rsp, struct net_device *netdev, u32 q_idx, u32 q_type, const struct genl_info *info) argument
365 struct net_device *netdev; local
403 netdev_nl_queue_dump_one(struct net_device *netdev, struct sk_buff *rsp, const struct genl_info *info, struct netdev_nl_dump_ctx *ctx) argument
436 struct net_device *netdev; local
507 netdev_nl_stats_queue(struct net_device *netdev, struct sk_buff *rsp, u32 q_type, int i, const struct genl_info *info) argument
554 netdev_nl_stats_by_queue(struct net_device *netdev, struct sk_buff *rsp, const struct genl_info *info, struct netdev_nl_dump_ctx *ctx) argument
587 netdev_nl_stats_by_netdev(struct net_device *netdev, struct sk_buff *rsp, const struct genl_info *info) argument
648 struct net_device *netdev; local
680 struct net_device *netdev = netdev_notifier_info_to_dev(ptr); local
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_fcoe.c64 * @netdev: net device
68 int cxgb_fcoe_enable(struct net_device *netdev) argument
70 struct port_info *pi = netdev_priv(netdev);
82 netdev->features |= NETIF_F_FCOE_CRC;
83 netdev->vlan_features |= NETIF_F_FCOE_CRC;
84 netdev->features |= NETIF_F_FCOE_MTU;
85 netdev->vlan_features |= NETIF_F_FCOE_MTU;
87 netdev_features_change(netdev);
96 * @netdev: net device
100 int cxgb_fcoe_disable(struct net_device *netdev) argument
[all...]
/linux-master/tools/perf/scripts/python/bin/
H A Dnetdev-times-report5 perf script -s "$PERF_EXEC_PATH"/scripts/python/netdev-times.py $@
/linux-master/drivers/net/ipa/
H A Dipa_modem.c44 * @work: Work structure used to wake the modem netdev TX queue
54 static int ipa_open(struct net_device *netdev) argument
56 struct ipa_priv *priv = netdev_priv(netdev);
74 netif_start_queue(netdev);
90 static int ipa_stop(struct net_device *netdev) argument
92 struct ipa_priv *priv = netdev_priv(netdev);
102 netif_stop_queue(netdev);
115 * @netdev: Network device
125 ipa_start_xmit(struct sk_buff *skb, struct net_device *netdev) argument
127 struct net_device_stats *stats = &netdev
201 ipa_modem_skb_rx(struct net_device *netdev, struct sk_buff *skb) argument
224 ipa_modem_netdev_setup(struct net_device *netdev) argument
253 ipa_modem_suspend(struct net_device *netdev) argument
288 ipa_modem_resume(struct net_device *netdev) argument
306 struct net_device *netdev; local
358 struct net_device *netdev = ipa->modem_netdev; local
[all...]
H A Dipa_modem.h16 void ipa_modem_skb_rx(struct net_device *netdev, struct sk_buff *skb);
18 void ipa_modem_suspend(struct net_device *netdev);
19 void ipa_modem_resume(struct net_device *netdev);
/linux-master/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_netdev.c50 * netdev functionality.
64 static void opa_vnic_get_stats64(struct net_device *netdev, argument
67 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev);
72 adapter->rn_ops->ndo_get_stats64(netdev, &vstats.netstats);
79 struct net_device *netdev)
81 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev);
93 return adapter->rn_ops->ndo_start_xmit(skb, netdev);
96 static u16 opa_vnic_select_queue(struct net_device *netdev, struct sk_buff *skb, argument
99 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev);
107 rc = adapter->rn_ops->ndo_select_queue(netdev, sk
78 opa_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev) argument
139 struct net_device *netdev = adapter->netdev; local
202 opa_vnic_set_mac_addr(struct net_device *netdev, void *addr) argument
228 opa_vnic_mac_send_event(struct net_device *netdev, u8 event) argument
263 opa_vnic_set_rx_mode(struct net_device *netdev) argument
273 opa_netdev_open(struct net_device *netdev) argument
292 opa_netdev_close(struct net_device *netdev) argument
326 struct net_device *netdev; local
390 struct net_device *netdev = adapter->netdev; local
[all...]
/linux-master/drivers/net/ethernet/litex/
H A Dlitex_liteeth.c42 struct net_device *netdev; member in struct:liteeth
57 static int liteeth_rx(struct net_device *netdev) argument
59 struct liteeth *priv = netdev_priv(netdev);
71 skb = netdev_alloc_skb_ip_align(netdev, len);
73 netdev_err(netdev, "couldn't get memory\n");
79 skb->protocol = eth_type_trans(skb, netdev);
81 dev_sw_netstats_rx_add(netdev, len);
86 netdev->stats.rx_dropped++;
87 netdev->stats.rx_errors++;
94 struct net_device *netdev local
114 liteeth_open(struct net_device *netdev) argument
139 liteeth_stop(struct net_device *netdev) argument
154 liteeth_start_xmit(struct sk_buff *skb, struct net_device *netdev) argument
196 liteeth_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) argument
235 struct net_device *netdev; local
299 struct net_device *netdev = platform_get_drvdata(pdev); local
[all...]
/linux-master/drivers/net/ethernet/qlogic/qede/
H A Dqede_dcbnl.c13 static u8 qede_dcbnl_getstate(struct net_device *netdev) argument
15 struct qede_dev *edev = netdev_priv(netdev);
20 static u8 qede_dcbnl_setstate(struct net_device *netdev, u8 state) argument
22 struct qede_dev *edev = netdev_priv(netdev);
27 static void qede_dcbnl_getpermhwaddr(struct net_device *netdev, argument
30 memcpy(perm_addr, netdev->dev_addr, netdev->addr_len);
33 static void qede_dcbnl_getpgtccfgtx(struct net_device *netdev, int prio, argument
37 struct qede_dev *edev = netdev_priv(netdev);
43 static void qede_dcbnl_getpgbwgcfgtx(struct net_device *netdev, argument
51 qede_dcbnl_getpgtccfgrx(struct net_device *netdev, int prio, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) argument
61 qede_dcbnl_getpgbwgcfgrx(struct net_device *netdev, int pgid, u8 *bw_pct) argument
69 qede_dcbnl_getpfccfg(struct net_device *netdev, int prio, u8 *setting) argument
77 qede_dcbnl_setpfccfg(struct net_device *netdev, int prio, u8 setting) argument
85 qede_dcbnl_getcap(struct net_device *netdev, int capid, u8 *cap) argument
92 qede_dcbnl_getnumtcs(struct net_device *netdev, int tcid, u8 *num) argument
99 qede_dcbnl_getpfcstate(struct net_device *netdev) argument
106 qede_dcbnl_getapp(struct net_device *netdev, u8 idtype, u16 id) argument
113 qede_dcbnl_getdcbx(struct net_device *netdev) argument
120 qede_dcbnl_setpgtccfgtx(struct net_device *netdev, int prio, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) argument
129 qede_dcbnl_setpgtccfgrx(struct net_device *netdev, int prio, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) argument
138 qede_dcbnl_setpgbwgcfgtx(struct net_device *netdev, int pgid, u8 bw_pct) argument
146 qede_dcbnl_setpgbwgcfgrx(struct net_device *netdev, int pgid, u8 bw_pct) argument
154 qede_dcbnl_setall(struct net_device *netdev) argument
161 qede_dcbnl_setnumtcs(struct net_device *netdev, int tcid, u8 num) argument
168 qede_dcbnl_setpfcstate(struct net_device *netdev, u8 state) argument
175 qede_dcbnl_setapp(struct net_device *netdev, u8 idtype, u16 idval, u8 up) argument
183 qede_dcbnl_setdcbx(struct net_device *netdev, u8 state) argument
190 qede_dcbnl_getfeatcfg(struct net_device *netdev, int featid, u8 *flags) argument
198 qede_dcbnl_setfeatcfg(struct net_device *netdev, int featid, u8 flags) argument
205 qede_dcbnl_peer_getappinfo(struct net_device *netdev, struct dcb_peer_app_info *info, u16 *count) argument
214 qede_dcbnl_peer_getapptable(struct net_device *netdev, struct dcb_app *app) argument
222 qede_dcbnl_cee_peer_getpfc(struct net_device *netdev, struct cee_pfc *pfc) argument
230 qede_dcbnl_cee_peer_getpg(struct net_device *netdev, struct cee_pg *pg) argument
238 qede_dcbnl_ieee_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) argument
246 qede_dcbnl_ieee_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) argument
254 qede_dcbnl_ieee_getets(struct net_device *netdev, struct ieee_ets *ets) argument
262 qede_dcbnl_ieee_setets(struct net_device *netdev, struct ieee_ets *ets) argument
270 qede_dcbnl_ieee_getapp(struct net_device *netdev, struct dcb_app *app) argument
278 qede_dcbnl_ieee_setapp(struct net_device *netdev, struct dcb_app *app) argument
291 qede_dcbnl_ieee_peer_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) argument
299 qede_dcbnl_ieee_peer_getets(struct net_device *netdev, struct ieee_ets *ets) argument
[all...]
/linux-master/drivers/net/ethernet/toshiba/
H A Dspider_net_ethtool.c37 spider_net_ethtool_get_link_ksettings(struct net_device *netdev, argument
41 card = netdev_priv(netdev);
59 spider_net_ethtool_get_drvinfo(struct net_device *netdev, argument
63 card = netdev_priv(netdev);
76 spider_net_ethtool_get_wol(struct net_device *netdev, argument
85 spider_net_ethtool_get_msglevel(struct net_device *netdev) argument
88 card = netdev_priv(netdev);
93 spider_net_ethtool_set_msglevel(struct net_device *netdev, argument
97 card = netdev_priv(netdev);
102 spider_net_ethtool_nway_reset(struct net_device *netdev) argument
112 spider_net_ethtool_get_ringparam(struct net_device *netdev, struct ethtool_ringparam *ering, struct kernel_ethtool_ringparam *kernel_ering, struct netlink_ext_ack *extack) argument
125 spider_net_get_sset_count(struct net_device *netdev, int sset) argument
135 spider_net_get_ethtool_stats(struct net_device *netdev, struct ethtool_stats *stats, u64 *data) argument
155 spider_net_get_strings(struct net_device *netdev, u32 stringset, u8 *data) argument
[all...]
/linux-master/net/openvswitch/
H A Dvport-internal_dev.c19 #include "vport-netdev.h"
27 static struct internal_dev *internal_dev_priv(struct net_device *netdev) argument
29 return netdev_priv(netdev);
34 internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) argument
42 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL);
46 dev_sw_netstats_tx_add(netdev, 1, len);
48 netdev->stats.tx_errors++;
53 static int internal_dev_open(struct net_device *netdev) argument
55 netif_start_queue(netdev);
59 static int internal_dev_stop(struct net_device *netdev) argument
65 internal_dev_getinfo(struct net_device *netdev, struct ethtool_drvinfo *info) argument
95 do_setup(struct net_device *netdev) argument
195 struct net_device *netdev = skb->dev; local
223 ovs_is_internal_dev(const struct net_device *netdev) argument
228 ovs_internal_dev_get_vport(struct net_device *netdev) argument
[all...]
/linux-master/tools/testing/selftests/drivers/net/mlxsw/
H A Dport_scale.sh23 check_err $? "Did not unsplit $netdev"
32 # Loop over the splittable netdevs and create tuples of netdev along
37 while read netdev count <<<$(
39 jq -r '.[][] | select(.splittable==true) | "\(.netdev) \(.lanes)"'
41 [[ ! -z $netdev ]]
43 devlink port split $netdev count $count
44 check_err $? "Did not split $netdev into $count"
45 unsplit+=( "${netdev}s0" )
/linux-master/drivers/net/dsa/
H A Ddsa_loop.h14 const char *netdev; member in struct:dsa_loop_pdata
/linux-master/drivers/net/ethernet/intel/igbvf/
H A DMakefile12 netdev.o
/linux-master/net/bluetooth/bnep/
H A DMakefile8 bnep-objs := core.o sock.o netdev.o
/linux-master/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_repr.c27 nfp_repr_inc_tx_stats(struct net_device *netdev, unsigned int len, argument
30 struct nfp_repr *repr = netdev_priv(netdev);
46 void nfp_repr_inc_rx_stats(struct net_device *netdev, unsigned int len) argument
48 struct nfp_repr *repr = netdev_priv(netdev);
90 nfp_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) argument
92 struct nfp_repr *repr = netdev_priv(netdev);
124 nfp_repr_get_host_stats64(const struct net_device *netdev, argument
127 struct nfp_repr *repr = netdev_priv(netdev);
167 static int nfp_repr_change_mtu(struct net_device *netdev, int new_mtu) argument
169 struct nfp_repr *repr = netdev_priv(netdev);
185 nfp_repr_xmit(struct sk_buff *skb, struct net_device *netdev) argument
202 nfp_repr_stop(struct net_device *netdev) argument
215 nfp_repr_open(struct net_device *netdev) argument
236 nfp_repr_fix_features(struct net_device *netdev, netdev_features_t features) argument
281 nfp_repr_transfer_features(struct net_device *netdev, struct net_device *lower) argument
315 nfp_repr_init(struct nfp_app *app, struct net_device *netdev, u32 cmsg_port_id, struct nfp_port *port, struct net_device *pf_netdev) argument
419 nfp_repr_free(struct net_device *netdev) argument
427 struct net_device *netdev; local
461 struct net_device *netdev; local
476 struct net_device *netdev; local
514 struct net_device *netdev; local
[all...]
H A Dnfp_port.c14 struct nfp_port *nfp_port_from_netdev(struct net_device *netdev) argument
16 if (nfp_netdev_is_nfp_net(netdev)) {
17 struct nfp_net *nn = netdev_priv(netdev);
22 if (nfp_netdev_is_nfp_repr(netdev)) {
23 struct nfp_repr *repr = netdev_priv(netdev);
28 WARN(1, "Unknown netdev type for nfp_port\n");
33 int nfp_port_get_port_parent_id(struct net_device *netdev, argument
39 port = nfp_port_from_netdev(netdev);
49 int nfp_port_setup_tc(struct net_device *netdev, enum tc_setup_type type, argument
54 port = nfp_port_from_netdev(netdev);
61 nfp_port_set_features(struct net_device *netdev, netdev_features_t features) argument
101 nfp_port_get_phys_port_name(struct net_device *netdev, char *name, size_t len) argument
155 nfp_port_configure(struct net_device *netdev, bool configed) argument
201 nfp_port_alloc(struct nfp_app *app, enum nfp_port_type type, struct net_device *netdev) argument
[all...]
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth-trace.h26 TP_PROTO(struct net_device *netdev,
30 TP_ARGS(netdev, fd),
41 __string(name, netdev->name)
51 __assign_str(name, netdev->name);
70 TP_PROTO(struct net_device *netdev,
73 TP_ARGS(netdev, fd)
78 TP_PROTO(struct net_device *netdev,
81 TP_ARGS(netdev, fd)
86 TP_PROTO(struct net_device *netdev,
89 TP_ARGS(netdev, f
[all...]
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_repr.c22 * @netdev: pointer to port representor netdev
27 ice_repr_get_phys_port_name(struct net_device *netdev, char *buf, size_t len) argument
29 struct ice_netdev_priv *np = netdev_priv(netdev);
46 * @netdev: pointer to port representor netdev
50 ice_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) argument
52 struct ice_netdev_priv *np = netdev_priv(netdev);
77 * @netdev: pointer to port representor netdev
79 ice_netdev_to_repr(struct net_device *netdev) argument
96 ice_repr_open(struct net_device *netdev) argument
122 ice_repr_stop(struct net_device *netdev) argument
225 ice_repr_setup_tc(struct net_device *netdev, enum tc_setup_type type, void *type_data) argument
257 ice_is_port_repr_netdev(const struct net_device *netdev) argument
267 ice_repr_reg_netdev(struct net_device *netdev) argument
[all...]
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sriov.h22 int ixgbe_ndo_set_vf_mac(struct net_device *netdev, int queue, u8 *mac);
23 int ixgbe_ndo_set_vf_vlan(struct net_device *netdev, int queue, u16 vlan,
26 int ixgbe_ndo_set_vf_bw(struct net_device *netdev, int vf, int min_tx_rate,
28 int ixgbe_ndo_set_vf_spoofchk(struct net_device *netdev, int vf, bool setting);
29 int ixgbe_ndo_set_vf_rss_query_en(struct net_device *netdev, int vf,
31 int ixgbe_ndo_set_vf_trust(struct net_device *netdev, int vf, bool setting);
32 int ixgbe_ndo_get_vf_config(struct net_device *netdev,
34 int ixgbe_ndo_set_vf_link_state(struct net_device *netdev, int vf, int state);

Completed in 523 milliseconds

1234567891011>>