Merge branch 'master' into next
Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
commit
92754430a6
|
|
@ -1 +1 @@
|
|||
static const char SNAPSHOT[] = "190708";
|
||||
static const char SNAPSHOT[] = "190924";
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
#define SQUASHFS_MAGIC 0x73717368
|
||||
#define ECRYPTFS_SUPER_MAGIC 0xf15f
|
||||
#define EFS_SUPER_MAGIC 0x414A53
|
||||
#define EROFS_SUPER_MAGIC_V1 0xE0F5E1E2
|
||||
#define EXT2_SUPER_MAGIC 0xEF53
|
||||
#define EXT3_SUPER_MAGIC 0xEF53
|
||||
#define XENFS_SUPER_MAGIC 0xabba1974
|
||||
|
|
|
|||
|
|
@ -1160,7 +1160,8 @@ enum {
|
|||
* [TCA_TAPRIO_ATTR_SCHED_ENTRY_INTERVAL]
|
||||
*/
|
||||
|
||||
#define TCA_TAPRIO_ATTR_FLAG_TXTIME_ASSIST 0x1
|
||||
#define TCA_TAPRIO_ATTR_FLAG_TXTIME_ASSIST BIT(0)
|
||||
#define TCA_TAPRIO_ATTR_FLAG_FULL_OFFLOAD BIT(1)
|
||||
|
||||
enum {
|
||||
TCA_TAPRIO_ATTR_UNSPEC,
|
||||
|
|
|
|||
|
|
@ -270,6 +270,12 @@ struct tcp_info {
|
|||
__u64 tcpi_bytes_retrans; /* RFC4898 tcpEStatsPerfOctetsRetrans */
|
||||
__u32 tcpi_dsack_dups; /* RFC4898 tcpEStatsStackDSACKDups */
|
||||
__u32 tcpi_reord_seen; /* reordering events seen */
|
||||
|
||||
__u32 tcpi_rcv_ooopack; /* Out-of-order packets received */
|
||||
|
||||
__u32 tcpi_snd_wnd; /* peer's advertised receive window after
|
||||
* scaling (bytes)
|
||||
*/
|
||||
};
|
||||
|
||||
/* netlink attributes types for SCM_TIMESTAMPING_OPT_STATS */
|
||||
|
|
|
|||
10
lib/bpf.c
10
lib/bpf.c
|
|
@ -1693,7 +1693,9 @@ static int bpf_map_attach(const char *name, struct bpf_elf_ctx *ctx,
|
|||
int *have_map_in_map)
|
||||
{
|
||||
int fd, ifindex, ret, map_inner_fd = 0;
|
||||
bool retried = false;
|
||||
|
||||
probe:
|
||||
fd = bpf_probe_pinned(name, ctx, map->pinning);
|
||||
if (fd > 0) {
|
||||
ret = bpf_map_selfcheck_pinned(fd, map, ext,
|
||||
|
|
@ -1742,10 +1744,14 @@ static int bpf_map_attach(const char *name, struct bpf_elf_ctx *ctx,
|
|||
}
|
||||
|
||||
ret = bpf_place_pinned(fd, name, ctx, map->pinning);
|
||||
if (ret < 0 && errno != EEXIST) {
|
||||
if (ret < 0) {
|
||||
close(fd);
|
||||
if (!retried && errno == EEXIST) {
|
||||
retried = true;
|
||||
goto probe;
|
||||
}
|
||||
fprintf(stderr, "Could not pin %s map: %s\n", name,
|
||||
strerror(errno));
|
||||
close(fd);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue