lkml.org 
[lkml]   [2016]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next 3/3] net: dsa: mv88e6xxx: add MDB support
> Do you mean the something like this?
>
> if (obj->id == SWITCHDEV_OBJ_ID_PORT_FDB) {
> ...
> } else if (obj->id == SWITCHDEV_OBJ_ID_PORT_MDB) {
> ...
> } else {
> return -EOPNOTSUPP;
> }

Hi Vivien

The -ENONOTSUPP is even better. I was not going as far as that.

> No the signatures are differentes. See _fdb vs. _mdb.

Ah, missed that. Then two functions are O.K. I don't think we should
consolidate it in the DSA layer.

Andrew



\
 
 \ /
  Last update: 2016-09-17 09:58    [W:0.068 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site