From fe68c005871ec5b4b3f33c1b99593667cc83c234 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Tue, 7 Jan 2014 14:33:37 +0900 Subject: [PATCH] netdev: Update rx_recv documentation for NULL case Replace truncated description of when rx_recv() may be NULL with text used for other fields of netdev_class. Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- lib/netdev-provider.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h index 40ba944ad..b0630cb4b 100644 --- a/lib/netdev-provider.h +++ b/lib/netdev-provider.h @@ -642,7 +642,8 @@ struct netdev_class { * Must return -EMSGSIZE, and discard the packet, if the received packet * is longer than 'size' bytes. * - * Specify NULL if this */ + * This function may be set to null if it would always return EOPNOTSUPP + * anyhow. */ int (*rx_recv)(struct netdev_rx *rx, void *buffer, size_t size); /* Registers with the poll loop to wake up from the next call to -- 2.20.1