caif: make zero a legal caif connetion id.
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>
Sun, 11 Mar 2012 10:28:32 +0000 (10:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Mar 2012 22:38:16 +0000 (15:38 -0700)
commite3abcc2a8538f7d5f64dbf85404bdf8a1d1581b3
tree68ea01fce98ab33507788f2c1ae8f830c077e987
parent374458b3fe4288f820dbf3de0728e314d969f9e4
caif: make zero a legal caif connetion id.

Connection ID configured through RTNL must allow zero as
connection id. If connection-id is not given when creating the
interface, configure a loopback interface using ifindex as
connection-id.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/chnl_net.c