return -ENOMEM;
data = genlmsg_put_reply(ans_skb, info, &brc_genl_family,
- 0, BRC_GENL_C_QUERY_MC);
+ 0, BRC_GENL_C_QUERY_MC);
if (data == NULL) {
err = -ENOMEM;
goto err;
if (add)
data = genlmsg_put(skb, 0, 0, &brc_genl_family, 0,
- BRC_GENL_C_DP_ADD);
+ BRC_GENL_C_DP_ADD);
else
data = genlmsg_put(skb, 0, 0, &brc_genl_family, 0,
- BRC_GENL_C_DP_DEL);
+ BRC_GENL_C_DP_DEL);
if (!data)
goto err;
if (add)
data = genlmsg_put(skb, 0, 0, &brc_genl_family, 0,
- BRC_GENL_C_PORT_ADD);
+ BRC_GENL_C_PORT_ADD);
else
data = genlmsg_put(skb, 0, 0, &brc_genl_family, 0,
- BRC_GENL_C_PORT_DEL);
+ BRC_GENL_C_PORT_DEL);
if (!data)
goto err;
/* Set the bridge ioctl handler */
brioctl_set(brc_ioctl_deviceless_stub);
- /* Set the OpenFlow device ioctl handler */
- dp_ioctl_hook = brc_dev_ioctl;
+ /* Set the OpenFlow device ioctl handler */
+ dp_ioctl_hook = brc_dev_ioctl;
/* Register generic netlink family to communicate changes to
* userspace. */
static void
brc_cleanup(void)
{
- /* Check refcount for datapaths so hook doesn't disappear? */
- dp_ioctl_hook = NULL;
+ /* Check refcount for datapaths so hook doesn't disappear? */
+ dp_ioctl_hook = NULL;
brioctl_set(NULL);
genl_unregister_family(&brc_genl_family);