#include #include #include #include #include "event-parse.h" /* * From glibc endian.h, for older systems where it is not present, e.g.: RHEL5, * Fedora6. */ #ifndef le16toh # if __BYTE_ORDER == __LITTLE_ENDIAN # define le16toh(x) (x) # else # define le16toh(x) __bswap_16 (x) # endif #endif static unsigned long long process___le16_to_cpup(struct trace_seq *s, unsigned long long *args) { uint16_t *val = (uint16_t *) (unsigned long) args[0]; return val ? (long long) le16toh(*val) : 0; } int PEVENT_PLUGIN_LOADER(struct pevent *pevent) { pevent_register_print_function(pevent, process___le16_to_cpup, PEVENT_FUNC_ARG_INT, "__le16_to_cpup", PEVENT_FUNC_ARG_PTR, PEVENT_FUNC_ARG_VOID); return 0; } void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) { pevent_unregister_print_function(pevent, process___le16_to_cpup, "__le16_to_cpup"); } is.form.submit();'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNogah Frankel <nogahf@mellanox.com>2017-02-09 14:54:40 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-10 11:46:38 -0500
commit147c1e9b902c25c868024260d24bb0b1dac1433d (patch)
tree0766e9ac71fd1cb5fe7a421808b3680ade60575a
parent94134bf89a4747ac370ffea614a2ba483edf0ccc (diff)
switchdev: bridge: Offload multicast disabled
Offload multicast disabled flag, for more accurate mc flood behavior: When it is on, the mdb should be ignored. When it is off, unregistered mc packets should be flooded to mc router ports. Signed-off-by: Nogah Frankel <nogahf@mellanox.com> Signed-off-by: Yotam Gigi <yotamg@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/switchdev.h2
-rw-r--r--net/bridge/br_multicast.c16
2 files changed, 18 insertions, 0 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h