/* * intel_pt_pkt_decoder.h: Intel Processor Trace support * Copyright (c) 2013-2014, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * */ #ifndef INCLUDE__INTEL_PT_PKT_DECODER_H__ #define INCLUDE__INTEL_PT_PKT_DECODER_H__ #include #include #define INTEL_PT_PKT_DESC_MAX 256 #define INTEL_PT_NEED_MORE_BYTES -1 #define INTEL_PT_BAD_PACKET -2 #define INTEL_PT_PSB_STR "\002\202\002\202\002\202\002\202" \ "\002\202\002\202\002\202\002\202" #define INTEL_PT_PSB_LEN 16 #define INTEL_PT_PKT_MAX_SZ 16 enum intel_pt_pkt_type { INTEL_PT_BAD, INTEL_PT_PAD, INTEL_PT_TNT, INTEL_PT_TIP_PGD, INTEL_PT_TIP_PGE, INTEL_PT_TSC, INTEL_PT_TMA, INTEL_PT_MODE_EXEC, INTEL_PT_MODE_TSX, INTEL_PT_MTC, INTEL_PT_TIP, INTEL_PT_FUP, INTEL_PT_CYC, INTEL_PT_VMCS, INTEL_PT_PSB, INTEL_PT_PSBEND, INTEL_PT_CBR, INTEL_PT_TRACESTOP, INTEL_PT_PIP, INTEL_PT_OVF, INTEL_PT_MNT, }; struct intel_pt_pkt { enum intel_pt_pkt_type type; int count; uint64_t payload; }; const char *intel_pt_pkt_name(enum intel_pt_pkt_type); int intel_pt_get_packet(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet); int intel_pt_pkt_desc(const struct intel_pt_pkt *packet, char *buf, size_t len); #endif git.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=63a6fff353d01da5a22b72670c434bf12fa0e3b8'>refslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Shearman <rshearma@brocade.com>2017-01-26 18:02:24 +0000
committerDavid S. Miller <davem@davemloft.net>2017-01-30 15:00:58 -0500
commit63a6fff353d01da5a22b72670c434bf12fa0e3b8 (patch)
tree5707ae376777271ab2d77411fed89afb515f0257 /include/dt-bindings/clock/imx27-clock.h
parenta3a4de056ed5cfb22085173d8f0f13b0ca6b6d60 (diff)
net: Avoid receiving packets with an l3mdev on unbound UDP sockets
Packets arriving in a VRF currently are delivered to UDP sockets that aren't bound to any interface. TCP defaults to not delivering packets arriving in a VRF to unbound sockets. IP route lookup and socket transmit both assume that unbound means using the default table and UDP applications that haven't been changed to be aware of VRFs may not function correctly in this case since they may not be able to handle overlapping IP address ranges, or be able to send packets back to the original sender if required. So add a sysctl, udp_l3mdev_accept, to control this behaviour with it being analgous to the existing tcp_l3mdev_accept, namely to allow a process to have a VRF-global listen socket. Have this default to off as this is the behaviour that users will expect, given that there is no explicit mechanism to set unmodified VRF-unaware application into a default VRF. Signed-off-by: Robert Shearman <rshearma@brocade.com> Acked-by: David Ahern <dsa@cumulusnetworks.com> Tested-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/dt-bindings/clock/imx27-clock.h')