… > +++ b/include/linux/netdevice.h > @@ -87,6 +87,8 @@ void netdev_sw_irq_coalesce_default_on(struct net_device *dev); > #define NET_RX_SUCCESS 0 /* keep 'em coming, baby */ > #define NET_RX_DROP 1 /* packet dropped */ > > +#define net_rx_errno(e) ((e) == NET_RX_DROP ? -ENOBUFS : (e)) … Can it become safer to use an inline function instead of the proposed macro addition? See also: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v6.5-rc3#n814 Regards, Markus