Re: [patch net-next v3 02/17] net: make vid as a parameter for ndo_fdb_add/ndo_fdb_del
From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2014-11-25 15:38:09
From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2014-11-25 15:38:09
On 11/25/14 05:28, Jiri Pirko wrote:
Do the work of parsing NDA_VLAN directly in rtnetlink code, pass simple u16 vid to drivers from there.
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> I know this maintains status quo of what is already in the kernel. But we need to take care of policy (pass it from user space) which dictates how to proceed on failure. Three possible options: 1) If something fails just continue with the rest of the transaction. Return success if at least one thing succeeds. 2) If something fails stop transaction and return some partial success code 3) If something fails undo everything that has been done and return failure. So two bits from somewhere would be useful to send from userspace->kernel
+static int fbd_vid_parse(struct nlattr *vlan_attr, u16 *p_vid)
typo fbd_vid_parse -> fdb_vid_parse cheers, jamal