/linux-5.10/drivers/usb/mtu3/ |
D | mtu3_gadget.c | 15 __releases(mep->mtu->lock) in mtu3_req_complete() 16 __acquires(mep->mtu->lock) in mtu3_req_complete() 19 struct mtu3 *mtu = mreq->mtu; in mtu3_req_complete() local 26 spin_unlock(&mtu->lock); in mtu3_req_complete() 30 usb_gadget_unmap_request(&mtu->g, req, mep->is_in); in mtu3_req_complete() 32 dev_dbg(mtu->dev, "%s complete req: %p, sts %d, %d/%d\n", in mtu3_req_complete() 36 spin_lock(&mtu->lock); in mtu3_req_complete() 46 dev_dbg(mep->mtu->dev, "abort %s's req: sts %d\n", mep->name, status); in nuke() 63 struct mtu3 *mtu = mep->mtu; in mtu3_ep_enable() local 76 switch (mtu->g.speed) { in mtu3_ep_enable() [all …]
|
D | mtu3_gadget_ep0.c | 18 #define next_ep0_request(mtu) next_request((mtu)->ep0) argument 39 static char *decode_ep0_state(struct mtu3 *mtu) in decode_ep0_state() argument 41 switch (mtu->ep0_state) { in decode_ep0_state() 57 static void ep0_req_giveback(struct mtu3 *mtu, struct usb_request *req) in ep0_req_giveback() argument 59 mtu3_req_complete(mtu->ep0, req, 0); in ep0_req_giveback() 63 forward_to_driver(struct mtu3 *mtu, const struct usb_ctrlrequest *setup) in forward_to_driver() argument 64 __releases(mtu->lock) in forward_to_driver() 65 __acquires(mtu->lock) in forward_to_driver() 69 if (!mtu->gadget_driver) in forward_to_driver() 72 spin_unlock(&mtu->lock); in forward_to_driver() [all …]
|
D | mtu3_core.c | 45 dev_dbg(mep->mtu->dev, "%s fifo:%#x/%#x, start_bit: %d\n", in ep_fifo_alloc() 66 dev_dbg(mep->mtu->dev, "%s size:%#x/%#x, start_bit: %d\n", in ep_fifo_free() 71 static inline void mtu3_ss_func_set(struct mtu3 *mtu, bool enable) in mtu3_ss_func_set() argument 75 mtu3_setbits(mtu->mac_base, U3D_USB3_CONFIG, USB3_EN); in mtu3_ss_func_set() 77 mtu3_clrbits(mtu->mac_base, U3D_USB3_CONFIG, USB3_EN); in mtu3_ss_func_set() 79 dev_dbg(mtu->dev, "USB3_EN = %d\n", !!enable); in mtu3_ss_func_set() 83 static inline void mtu3_hs_softconn_set(struct mtu3 *mtu, bool enable) in mtu3_hs_softconn_set() argument 86 mtu3_setbits(mtu->mac_base, U3D_POWER_MANAGEMENT, in mtu3_hs_softconn_set() 89 mtu3_clrbits(mtu->mac_base, U3D_POWER_MANAGEMENT, in mtu3_hs_softconn_set() 92 dev_dbg(mtu->dev, "SOFTCONN = %d\n", !!enable); in mtu3_hs_softconn_set() [all …]
|
D | mtu3_qmu.c | 38 #define GPD_RX_BUF_LEN(mtu, x) \ argument 41 ((mtu)->gen2cp) ? GPD_RX_BUF_LEN_EL(x_) : GPD_RX_BUF_LEN_OG(x_); \ 46 #define GPD_DATA_LEN(mtu, x) \ argument 49 ((mtu)->gen2cp) ? GPD_DATA_LEN_EL(x_) : GPD_DATA_LEN_OG(x_); \ 57 #define GPD_EXT_NGP(mtu, x) \ argument 60 ((mtu)->gen2cp) ? GPD_EXT_NGP_EL(x_) : GPD_EXT_NGP_OG(x_); \ 63 #define GPD_EXT_BUF(mtu, x) \ argument 66 ((mtu)->gen2cp) ? GPD_EXT_BUF_EL(x_) : GPD_EXT_BUF_OG(x_); \ 171 gpd = dma_pool_zalloc(mep->mtu->qmu_gpd_pool, GFP_ATOMIC, &ring->dma); in mtu3_gpd_ring_alloc() 184 dma_pool_free(mep->mtu->qmu_gpd_pool, in mtu3_gpd_ring_free() [all …]
|
D | mtu3_debugfs.c | 80 struct mtu3 *mtu = sf->private; in mtu3_link_state_show() local 81 void __iomem *mbase = mtu->mac_base; in mtu3_link_state_show() 92 struct mtu3 *mtu = sf->private; in mtu3_ep_used_show() local 98 spin_lock_irqsave(&mtu->lock, flags); in mtu3_ep_used_show() 100 for (i = 0; i < mtu->num_eps; i++) { in mtu3_ep_used_show() 101 mep = mtu->in_eps + i; in mtu3_ep_used_show() 107 mep = mtu->out_eps + i; in mtu3_ep_used_show() 115 spin_unlock_irqrestore(&mtu->lock, flags); in mtu3_ep_used_show() 123 static void mtu3_debugfs_regset(struct mtu3 *mtu, void __iomem *base, in mtu3_debugfs_regset() argument 130 mregs = devm_kzalloc(mtu->dev, sizeof(*regset), GFP_KERNEL); in mtu3_debugfs_regset() [all …]
|
D | mtu3.h | 279 struct mtu3 *mtu; member 302 struct mtu3 *mtu; member 421 int mtu3_config_ep(struct mtu3 *mtu, struct mtu3_ep *mep, 423 void mtu3_deconfig_ep(struct mtu3 *mtu, struct mtu3_ep *mep); 425 void mtu3_ep0_setup(struct mtu3 *mtu); 426 void mtu3_start(struct mtu3 *mtu); 427 void mtu3_stop(struct mtu3 *mtu); 428 void mtu3_dev_on_off(struct mtu3 *mtu, int is_on); 429 void mtu3_set_speed(struct mtu3 *mtu, enum usb_device_speed speed); 431 int mtu3_gadget_setup(struct mtu3 *mtu); [all …]
|
/linux-5.10/drivers/clocksource/ |
D | sh_mtu2.c | 33 struct sh_mtu2_device *mtu; member 161 return ioread8(ch->mtu->mapbase + 0x280); in sh_mtu2_read() 177 return iowrite8(value, ch->mtu->mapbase + 0x280); in sh_mtu2_write() 192 raw_spin_lock_irqsave(&ch->mtu->lock, flags); in sh_mtu2_start_stop_ch() 201 raw_spin_unlock_irqrestore(&ch->mtu->lock, flags); in sh_mtu2_start_stop_ch() 210 pm_runtime_get_sync(&ch->mtu->pdev->dev); in sh_mtu2_enable() 211 dev_pm_syscore_device(&ch->mtu->pdev->dev, true); in sh_mtu2_enable() 214 ret = clk_enable(ch->mtu->clk); in sh_mtu2_enable() 216 dev_err(&ch->mtu->pdev->dev, "ch%u: cannot enable clock\n", in sh_mtu2_enable() 224 rate = clk_get_rate(ch->mtu->clk) / 64; in sh_mtu2_enable() [all …]
|
/linux-5.10/tools/testing/selftests/net/ |
D | pmtu.sh | 4 # Check that route PMTU values match expectations, and that initial device MTU 20 # decrease and increase the MTU of the local link for one of the paths, 32 # set a MTU lower than the VXLAN MTU and the MTU on the link between A and 33 # R1. Send IPv4 packets, exceeding the MTU between R1 and B, over VXLAN 66 # MTU on the B-R1 link is lower than other MTUs. 85 # which is handled by Open vSwitch and bridged to C. MTU on the B-R1 link 116 # created if link layer MTU is not exceeded, then exceed it and check that 118 # below for IPv6 doesn't apply here, because, on IPv4, administrative MTU 124 # created by exceeding link layer MTU with ping to other endpoint. Then 125 # decrease and increase MTU of tunnel, checking that route exception PMTU [all …]
|
D | fib_nexthop_multiprefix.sh | 156 local mtu=$2 158 run_cmd ip -netns h${hostid} li set eth0 mtu ${mtu} 159 run_cmd ip -netns r1 li set eth${hostid} mtu ${mtu} 168 local mtu=$2 183 echo " cache .* mtu ${mtu}" 188 grep -q "cache .* mtu ${mtu}" 191 log_test $rc 0 "IPv4: host 0 to host ${i}, mtu ${mtu}" 197 local mtu=$2 212 echo " ${dst} from :: via ${r1} dev eth0 src ${h0} .* mtu ${mtu}" 217 grep -q "${dst} from :: via ${r1} dev eth0 src ${h0} .* mtu ${mtu}" [all …]
|
D | icmp_redirect.sh | 275 local mtu=$1 277 run_cmd ip -netns h2 li set eth0 mtu ${mtu} 278 run_cmd ip -netns r2 li set eth2 mtu ${mtu} 283 local mtu="$1" 294 if [ -n "${mtu}" ]; then 295 mtu=" mtu ${mtu}" 299 grep -q "cache <redirected> expires [0-9]*sec${mtu}" 300 elif [ -n "${mtu}" ]; then 302 grep -q "cache expires [0-9]*sec${mtu}" 304 # want to verify that neither mtu nor redirected appears in [all …]
|
D | udpgso.c | 286 error(1, errno, "ioctl get mtu"); in get_device_mtu() 291 static void __set_device_mtu(int fd, const char *ifname, unsigned int mtu) in __set_device_mtu() argument 297 ifr.ifr_mtu = mtu; in __set_device_mtu() 301 error(1, errno, "ioctl set mtu"); in __set_device_mtu() 304 static void set_device_mtu(int fd, int mtu) in set_device_mtu() argument 309 fprintf(stderr, "device mtu (orig): %u\n", val); in set_device_mtu() 311 __set_device_mtu(fd, cfg_ifname, mtu); in set_device_mtu() 313 if (val != mtu) in set_device_mtu() 314 error(1, 0, "unable to set device mtu to %u\n", val); in set_device_mtu() 316 fprintf(stderr, "device mtu (test): %u\n", val); in set_device_mtu() [all …]
|
D | psock_snd.sh | 8 readonly mtu=1500 15 readonly mss="$((${mtu} - ${iphlen} - ${udphlen}))" 57 echo "raw mtu size" 60 echo "raw mtu size + 1 (expected to fail)" 65 # echo "raw vlan mtu size" 68 echo "raw vlan mtu size + 1 (expected to fail)" 71 echo "dgram mtu size" 74 echo "dgram mtu size + 1 (expected to fail)"
|
/linux-5.10/net/rxrpc/ |
D | peer_event.c | 105 * Handle an MTU/fragmentation problem. 109 u32 mtu = serr->ee.ee_info; in rxrpc_adjust_mtu() local 111 _net("Rx ICMP Fragmentation Needed (%d)", mtu); in rxrpc_adjust_mtu() 113 /* wind down the local interface MTU */ in rxrpc_adjust_mtu() 114 if (mtu > 0 && peer->if_mtu == 65535 && mtu < peer->if_mtu) { in rxrpc_adjust_mtu() 115 peer->if_mtu = mtu; in rxrpc_adjust_mtu() 116 _net("I/F MTU %u", mtu); in rxrpc_adjust_mtu() 119 if (mtu == 0) { in rxrpc_adjust_mtu() 121 mtu = peer->if_mtu; in rxrpc_adjust_mtu() 122 if (mtu > 1500) { in rxrpc_adjust_mtu() [all …]
|
/linux-5.10/drivers/infiniband/sw/rxe/ |
D | rxe_param.h | 12 static inline enum ib_mtu rxe_mtu_int_to_enum(int mtu) in rxe_mtu_int_to_enum() argument 14 if (mtu < 256) in rxe_mtu_int_to_enum() 16 else if (mtu < 512) in rxe_mtu_int_to_enum() 18 else if (mtu < 1024) in rxe_mtu_int_to_enum() 20 else if (mtu < 2048) in rxe_mtu_int_to_enum() 22 else if (mtu < 4096) in rxe_mtu_int_to_enum() 28 /* Find the IB mtu for a given network MTU. */ 29 static inline enum ib_mtu eth_mtu_int_to_enum(int mtu) in eth_mtu_int_to_enum() argument 31 mtu -= RXE_MAX_HDR_LENGTH; in eth_mtu_int_to_enum() 33 return rxe_mtu_int_to_enum(mtu); in eth_mtu_int_to_enum()
|
/linux-5.10/net/ipv6/ |
D | xfrm6_output.c | 26 void xfrm6_local_rxpmtu(struct sk_buff *skb, u32 mtu) in xfrm6_local_rxpmtu() argument 34 ipv6_local_rxpmtu(sk, &fl6, mtu); in xfrm6_local_rxpmtu() 37 void xfrm6_local_error(struct sk_buff *skb, u32 mtu) in xfrm6_local_error() argument 47 ipv6_local_error(sk, EMSGSIZE, &fl6, mtu); in xfrm6_local_error() 59 int mtu; in __xfrm6_output() local 73 mtu = ip6_skb_dst_mtu(skb); in __xfrm6_output() 75 mtu = dst_mtu(skb_dst(skb)); in __xfrm6_output() 77 toobig = skb->len > mtu && !skb_is_gso(skb); in __xfrm6_output() 80 xfrm6_local_rxpmtu(skb, mtu); in __xfrm6_output() 84 xfrm_local_error(skb, mtu); in __xfrm6_output()
|
D | ip6_output.c | 208 u32 mtu; in ip6_xmit() local 265 mtu = dst_mtu(dst); in ip6_xmit() 266 if ((skb->len <= mtu) || skb->ignore_df || skb_is_gso(skb)) { in ip6_xmit() 289 ipv6_local_error((struct sock *)sk, EMSGSIZE, fl6, mtu); in ip6_xmit() 403 static bool ip6_pkt_too_big(const struct sk_buff *skb, unsigned int mtu) in ip6_pkt_too_big() argument 405 if (skb->len <= mtu) in ip6_pkt_too_big() 409 if (IP6CB(skb)->frag_max_size && IP6CB(skb)->frag_max_size > mtu) in ip6_pkt_too_big() 415 if (skb_is_gso(skb) && skb_gso_validate_network_len(skb, mtu)) in ip6_pkt_too_big() 428 u32 mtu; in ip6_forward() local 540 mtu = ip6_dst_mtu_forward(dst); in ip6_forward() [all …]
|
/linux-5.10/tools/testing/selftests/net/forwarding/ |
D | ipip_lib.sh | 320 local mtu=$1 322 ip link set mtu $mtu dev $h1 323 ip link set mtu $mtu dev $ol1 324 ip link set mtu $mtu dev g1a 325 ip link set mtu $mtu dev $ul1 326 ip link set mtu $mtu dev $ul1.111 327 ip link set mtu $mtu dev $h2 328 ip link set mtu $mtu dev $ol2 329 ip link set mtu $mtu dev g2a 330 ip link set mtu $mtu dev $ul2 [all …]
|
/linux-5.10/tools/testing/selftests/tc-testing/tc-tests/actions/ |
D | police.json | 53 "name": "Add valid police action with mtu", 66 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98", 69 "matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb", 90 …"cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit inde… 93 …"matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit", 101 "name": "Add police action with peakrate and no mtu", 141 …"matchPattern": "action order [0-9]*: police 0x40 rate 1Mbit burst 100Kb mtu 2Kb action reclassif… 165 …"matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify… 189 …"matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify… 213 …"matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action continue/d… [all …]
|
/linux-5.10/Documentation/networking/ |
D | netdevices.rst | 19 (example: rmmod mydriver </sys/class/net/myeth/mtu ) 26 MTU chapter 28 Each network device has a Maximum Transfer Unit. The MTU does not 31 than the mtu. The MTU does not include link layer header overhead, so 32 for example on Ethernet if the standard MTU is 1500 bytes used, the 39 packets based on the current MTU. 41 MTU is symmetrical and applies both to receive and transmit. A device 43 the MTU. A network device may use the MTU as mechanism to size receive 45 standard Ethernet mtu of 1500 bytes, the device should allow up to
|
/linux-5.10/net/caif/ |
D | chnl_net.c | 24 /* GPRS PDP connection has MTU to 1500 */ 224 if (skb->len > priv->netdev->mtu) { in chnl_net_start_xmit() 225 pr_warn("Size of skb exceeded MTU\n"); in chnl_net_start_xmit() 264 int llifindex, headroom, tailroom, mtu; in chnl_net_open() local 299 * MTU, head-room etc is not know before we have a in chnl_net_open() 300 * CAIF link layer device available. MTU calculation may in chnl_net_open() 302 * MTU is minimum of current mtu, link layer mtu pluss in chnl_net_open() 303 * CAIF head and tail, and PDP GPRS contexts max MTU. in chnl_net_open() 305 mtu = min_t(int, dev->mtu, lldev->mtu - (headroom + tailroom)); in chnl_net_open() 306 mtu = min_t(int, GPRS_PDP_MTU, mtu); in chnl_net_open() [all …]
|
/linux-5.10/net/sched/ |
D | sch_teql.c | 191 dev->mtu < m->dev->mtu) in teql_qdisc_init() 200 if (dev->mtu < m->dev->mtu) in teql_qdisc_init() 201 m->dev->mtu = dev->mtu; in teql_qdisc_init() 208 m->dev->mtu = dev->mtu; in teql_qdisc_init() 357 int mtu = 0xFFFE; in teql_master_open() local 372 if (slave->mtu < mtu) in teql_master_open() 373 mtu = slave->mtu; in teql_master_open() 389 m->dev->mtu = mtu; in teql_master_open() 420 if (new_mtu > qdisc_dev(q)->mtu) in teql_master_mtu() 425 dev->mtu = new_mtu; in teql_master_mtu() [all …]
|
D | sch_tbf.c | 60 one with rate P (peak rate) and depth M (equal to link MTU) 88 Note that the peak rate TBF is much more tough: with MTU 1500 101 s64 buffer; /* Token bucket depth/rate: MUST BE >= MTU/B */ 102 s64 mtu; member 272 if (ptoks > q->mtu) in tbf_dequeue() 273 ptoks = q->mtu; in tbf_dequeue() 323 q->ptokens = q->mtu; in tbf_reset() 348 s64 buffer, mtu; in tbf_change() local 372 mtu = min_t(u64, PSCHED_TICKS2NS(qopt->mtu), ~0U); in tbf_change() 399 mtu = psched_l2t_ns(&peak, pburst); in tbf_change() [all …]
|
/linux-5.10/net/ipv4/ |
D | ip_forward.c | 43 static bool ip_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu) in ip_exceeds_mtu() argument 45 if (skb->len <= mtu) in ip_exceeds_mtu() 51 /* original fragment exceeds mtu and DF is set */ in ip_exceeds_mtu() 52 if (unlikely(IPCB(skb)->frag_max_size > mtu)) in ip_exceeds_mtu() 58 if (skb_is_gso(skb) && skb_gso_validate_network_len(skb, mtu)) in ip_exceeds_mtu() 88 u32 mtu; in ip_forward() local 130 mtu = ip_dst_mtu_maybe_forward(&rt->dst, true); in ip_forward() 131 if (ip_exceeds_mtu(skb, mtu)) { in ip_forward() 134 htonl(mtu)); in ip_forward()
|
D | ip_output.c | 88 unsigned int mtu, 243 struct sk_buff *skb, unsigned int mtu) in ip_finish_output_gso() argument 249 /* common case: seglen is <= mtu in ip_finish_output_gso() 251 if (skb_gso_validate_network_len(skb, mtu)) in ip_finish_output_gso() 254 /* Slowpath - GSO segment length exceeds the egress MTU. in ip_finish_output_gso() 262 * interface with a smaller MTU. in ip_finish_output_gso() 265 * insufficent MTU. in ip_finish_output_gso() 281 err = ip_fragment(net, sk, segs, mtu, ip_finish_output2); in ip_finish_output_gso() 292 unsigned int mtu; in __ip_finish_output() local 301 mtu = ip_skb_dst_mtu(sk, skb); in __ip_finish_output() [all …]
|
/linux-5.10/tools/testing/selftests/netfilter/ |
D | nft_flowtable.sh | 7 # Originator (MTU 9000) <-Router1-> MTU 1500 <-Router2-> Responder (MTU 2000) 13 # You can check with different Orgininator/Link/Responder MTU eg: 79 # set different MTUs so we need to push packets coming from ns1 (large MTU) 80 # to ns2 (smaller MTU) to stack either to perform fragmentation (ip_no_pmtu_disc=1), 82 # ns2 is going via nsr2 with a smaller mtu, so that TCPMSS announced by both peers 83 # is NOT the lowest link mtu. 92 echo "MTU options" 109 if ! ip -net nsr1 link set veth0 mtu $omtu; then 113 ip -net ns1 link set eth0 mtu $omtu 115 if ! ip -net nsr2 link set veth1 mtu $rmtu; then [all …]
|