WANG Cong 2519a602c2 net_sched: optimize tcf_match_indev()
tcf_match_indev() is called in fast path, it is not wise to
search for a netdev by ifindex and then compare by its name,
just compare the ifindex.

Also, dev->name could be changed by user-space, therefore
the match would be always fail, but dev->ifindex could
be consistent.

BTW, this will also save some bytes from the core struct of u32.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-13 11:50:15 -08:00
..
2014-01-13 11:50:15 -08:00
2011-01-19 23:31:12 -08:00
2013-10-18 16:23:06 -04:00
2011-01-19 23:31:12 -08:00
2011-01-19 23:31:12 -08:00
2011-01-19 23:31:12 -08:00
2014-01-06 15:13:01 -05:00
2014-01-06 15:13:01 -05:00
2013-06-11 02:51:03 -07:00
2012-04-01 18:11:37 -04:00
2013-12-31 13:50:57 -05:00
2013-12-31 14:31:44 -05:00
2014-01-06 15:13:01 -05:00
2012-04-01 18:11:37 -04:00
2012-04-01 18:11:37 -04:00
2012-07-12 08:33:18 -07:00