All of lore.kernel.org
 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.