Thread (38 messages) 38 messages, 4 authors, 2022-09-22

Re: [PATCH net-next 10/13] tsnep: deny tc-taprio changes to per-tc max SDU

flat view

From: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: 2022-09-16 22:16:26
Also in: lkml

On Fri, Sep 16, 2022 at 09:53:56PM +0200, Gerhard Engleder wrote:
Ok, denying max_sdu makes sense. It can be used to prevent too large
frames for a traffic class by discarding them.

In my opinion for MACs a software implementation would make sense even
in full offload mode, because it would prevent copying frames from RAM
to MAC which are discarded anyway. But that should be decided driver
specific.

Thanks for your explanations!
Depending on how your hardware architecture looks like, discarding the
oversized frames in the driver might or might not be possible. If you
have for example queues exposed to user space, you're at user space's
mercy. Since for example enetc can have virtual station interfaces
(essentially a set of queues with a way to reach them, by MAC address)
exported using vfio-pci to a guest OS running arbitrary software,
dropping them in the physical port MAC is pretty much the only way you
can ensure you meet your latency target.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help