On 10/10/17 8:44 AM, Florian Westphal wrote:
> @@ -3666,7 +3666,7 @@ static int rtnl_bridge_setlink(struct sk_buff *skb,
> struct nlmsghdr *nlh,
>
> dev = __dev_get_by_index(net, ifm->ifi_index);
> if (!dev) {
> - pr_info("PF_BRIDGE: RTM_SETLINK with unknown ifindex\n");
> + NL_SET_ERR_MSG(extack, "RTM_SETLINK with unknown ifindex");
> return -ENODEV;
> }
>
> @@ -3741,7 +3741,7 @@ static int rtnl_bridge_dellink(struct sk_buff *skb,
> struct nlmsghdr *nlh,
>
> dev = __dev_get_by_index(net, ifm->ifi_index);
> if (!dev) {
> - pr_info("PF_BRIDGE: RTM_SETLINK with unknown ifindex\n");
> + NL_SET_ERR_MSG(extack, "RTM_SETLINK with unknown ifindex");
> return -ENODEV;
> }
missed a couple of 'RTM_* with' strings