Re: nft netdev family bindings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 05, 2015 at 03:35:33PM +0200, Patrick McHardy wrote:
> Hi Pablo,
> 
> looking at the netdev syntax:
> 
> table netdev eth0 {
> 	device eth0;
> 	...
> 
> I think this "device" specification is inconsistent with out normal use
> of handles. Usually the table_spec contains the fully qualified handle,
> which in this case needs to include the device.
> 
> Consider:
> 
> table netdev somename {
> 	device eth0;
> 	...
> 
> table netdev somename {
> 	device eth1;
> 	...

I see, you mean the same name:

# nft add table netdev somename { device eth0 \; }
# nft add table netdev somename { device eth1 \; }

I can see this is not working fine now, since the second invocation is
considered an update. But the kernel should bail out with EBUSY IMO.

> Without including the device in the table handle, the name alone is amiguitios.

The table name should be unique as with other families. Then, probably
the device doesn't belong to the handle.

> I'd propose to use
> 
> table netdev <dev> <name>
> 
> Just as we have the family in the handle.

I've considering to allow to bind a table to an input device from
other families as something optional. From the hardware offload
perspective we would need this too if we want to offload the
forwarding table.

Let me know, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux