datapath: Check device name length more carefully in create_dp().
authorBen Pfaff <blp@nicira.com>
Tue, 27 Apr 2010 17:45:28 +0000 (10:45 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 27 Apr 2010 17:45:28 +0000 (10:45 -0700)
commit968f7c8d772e704ff96bd2923d474c7f969c7c6b
tree002a7d39b7e46ae5e76a8205fe9d375ba7eb0efb
parent092a872d6e8009ef547dc66274936dc879c55419
datapath: Check device name length more carefully in create_dp().

I don't see any value in silently truncating device names.  Doing so will
sow confusion in userspace.  This commit makes too-long device names
return ENAMETOOLONG.
datapath/datapath.c