datapath: Return EFBIG instead of EXFULL when no room in flow table
authorJustin Pettit <jpettit@nicira.com>
Tue, 25 Aug 2009 20:17:26 +0000 (13:17 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 25 Aug 2009 20:17:26 +0000 (13:17 -0700)
The EXFULL errno is only defined in Linux.  While this datapath is
Linux-specific, the userspace that interacts with it is not.

datapath/datapath.c

index f506324..5092ced 100644 (file)
@@ -865,7 +865,7 @@ retry:
        bucket = dp_table_lookup_for_insert(table, &uf.flow.key);
        if (!bucket) {
                /* No such flow, and the slots where it could go are full. */
-               error = uf.flags & ODPPF_CREATE ? -EXFULL : -ENOENT;
+               error = uf.flags & ODPPF_CREATE ? -EFBIG : -ENOENT;
                goto error;
        } else if (!*bucket) {
                /* No such flow, but we found an available slot for it. */