netdev: Update rx_recv documentation for NULL case
authorSimon Horman <horms@verge.net.au>
Tue, 7 Jan 2014 05:33:37 +0000 (14:33 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 7 Jan 2014 22:53:25 +0000 (14:53 -0800)
Replace truncated description of when rx_recv() may be NULL
with text used for other fields of netdev_class.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-provider.h

index 40ba944..b0630cb 100644 (file)
@@ -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