/* * netsniff-ng - the packet sniffing beast * Copyright 2009, 2010 Daniel Borkmann. * Subject to the GPL, version 2. */ #include #include "hash.h" #include "protos.h" #include "dissector.h" #include "dissector_80211.h" #include "xmalloc.h" #include "oui.h" struct hash_table ieee80211_lay2; static inline void dissector_init_entry(int type) { dissector_set_print_type(&ieee80211_ops, type); } static inline void dissector_init_exit(int type) { dissector_set_print_type(&none_ops, type); } static void dissector_init_layer_2(int type) { init_hash(&ieee80211_lay2); // INSERT_HASH_PROTOS(blubber_ops, ieee80211_lay2); for_each_hash_int(&ieee80211_lay2, dissector_set_print_type, type); } void dissector_init_ieee80211(int fnttype) { dissector_init_entry(fnttype); dissector_init_layer_2(fnttype); dissector_init_exit(fnttype); dissector_init_oui(); } void dissector_cleanup_ieee80211(void) { free_hash(&ieee80211_lay2); dissector_cleanup_oui(); } ();'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@mellanox.com>2016-08-18 21:09:03 +0300
committerDavid S. Miller <davem@davemloft.net>2016-08-19 16:09:55 -0700
commit506753b0b40997756d73f841c884a018f52401a0 (patch)
treefa5dd9b6266158a3fe5064c685bb529fadadbd94
parent13f9bba7cd4f1665e4091143950a54e3f2984b07 (diff)
net/mlx5e: Optimization for MTU change
Avoid unnecessary interface down/up operations upon an MTU change when it does not affect the rings configuration. Fixes: 461017cb006a ("net/mlx5e: Support RX multi-packet WQE (Striding RQ)") Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>