Re: [B.A.T.M.A.N.] [PATCHv2 2/4] batman-adv: invoke dev_get_by_index() outside of is_wifi_iface()

Marek Lindner
2013-10-14T13:20:38Z

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

On Sunday 13 October 2013 02:50:18 Antonio Quartulli wrote:
> From: Antonio Quartulli <antonio@open-mesh.com>
>
> Upcoming changes need to perform other checks on the
> incoming net_device struct.
>
> To avoid performing dev_get_by_index() for each and every
> check, it is better to move it outside of is_wifi_iface()
> and search the netdev object once only.
>
> Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
> ---
> hard-interface.c | 31 +++----------------------------
> hard-interface.h | 1 -
> translation-table.c | 8 +++++++-
> 3 files changed, 10 insertions(+), 30 deletions(-)

Applied in revision f7391e9.

Thanks,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]