#ifndef VLAN_H #define VLAN_H #include #include static inline uint16_t vlan_tci2prio(uint16_t tci) { return (tci & 0xe000) >> 13; } static inline uint16_t vlan_tci2cfi(uint16_t tci) { return (tci & 0x1000) >> 12; } static inline uint16_t vlan_tci2vid(uint16_t tci) { return tci & 0x0fff; } #endif x/net-next.git/atom/Documentation?h=nds-private-remove' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-12-06 14:18:51 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-12-15 16:25:44 -0300
commitaeafd623f866c429307e3a4a39998f5f06b4f00e (patch)
tree6dcebbf7bbc1d4bd32121d0adc000c5897457e15 /Documentation
parente7aa8c2eb11ba69b1b69099c3c7bd6be3087b0ba (diff)
perf tools: Move headers check into bash script
To make it nicer and easily maintainable. Also moving the check into fixdep sub make, so its output is not scattered around the build output. Removing extra $$ from mman*.h checks. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1481030331-31944-5-git-send-email-jolsa@kernel.org [ Use /bin/sh, and 'function check() {' -> 'check () {' to make it work with busybox, in Alpine Linux, for instance ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'Documentation')