kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* ndo_start_xmit what to return when packet is too big!?
@ 2016-09-20  3:06 Daniel.
  0 siblings, 0 replies; only message in thread
From: Daniel. @ 2016-09-20  3:06 UTC (permalink / raw)
  To: kernelnewbies

Hi everybody,

I was looking at network chapter of LDD3. The .ndo_start_xmit member
of struct net_device_ops should return netdev_tx_t which are:
enum netdev_tx {
        __NETDEV_TX_MIN  = INT_MIN,     /* make sure enum is signed */
        NETDEV_TX_OK     = 0x00,        /* driver took care of packet */
        NETDEV_TX_BUSY   = 0x10,        /* driver tx path was busy*/
        NETDEV_TX_LOCKED = 0x20,        /* driver tx lock was already taken */
};


I'm deling with some awkward hardware where the MTU is only 32 bytes
and was wondering. What should that function return in case of "too
large packet"?!?!?

Best regards,

-- 
"Do or do not. There is no try"
  Yoda Master

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-20  3:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-20  3:06 ndo_start_xmit what to return when packet is too big!? Daniel.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).