Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Resolved kernel/bpf/btf.c using instructions from merge commit
69138b34a7
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -235,8 +235,6 @@ check_highest_speed_is_chosen()
|
||||
fi
|
||||
|
||||
local -a speeds_arr=($(common_speeds_get $h1 $h2 0 1))
|
||||
# Remove the first speed, h1 does not advertise this speed.
|
||||
unset speeds_arr[0]
|
||||
|
||||
max_speed=${speeds_arr[0]}
|
||||
for current in ${speeds_arr[@]}; do
|
||||
|
@@ -350,7 +350,8 @@ static int test_datapath(uint16_t typeflags, int port_off,
|
||||
int fds[2], fds_udp[2][2], ret;
|
||||
|
||||
fprintf(stderr, "\ntest: datapath 0x%hx ports %hu,%hu\n",
|
||||
typeflags, PORT_BASE, PORT_BASE + port_off);
|
||||
typeflags, (uint16_t)PORT_BASE,
|
||||
(uint16_t)(PORT_BASE + port_off));
|
||||
|
||||
fds[0] = sock_fanout_open(typeflags, 0);
|
||||
fds[1] = sock_fanout_open(typeflags, 0);
|
||||
|
@@ -359,8 +359,7 @@ int main(int argc, char **argv)
|
||||
bool strict = false;
|
||||
int arg_index = 0;
|
||||
int failures = 0;
|
||||
int s, t;
|
||||
char opt;
|
||||
int s, t, opt;
|
||||
|
||||
while ((opt = getopt_long(argc, argv, "", long_options,
|
||||
&arg_index)) != -1) {
|
||||
|
@@ -121,7 +121,7 @@ static bool do_recv_one(int fdr, struct timed_send *ts)
|
||||
if (rbuf[0] != ts->data)
|
||||
error(1, 0, "payload mismatch. expected %c", ts->data);
|
||||
|
||||
if (labs(tstop - texpect) > cfg_variance_us)
|
||||
if (llabs(tstop - texpect) > cfg_variance_us)
|
||||
error(1, 0, "exceeds variance (%d us)", cfg_variance_us);
|
||||
|
||||
return false;
|
||||
|
@@ -344,7 +344,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
struct sockaddr_storage listenaddr, addr;
|
||||
unsigned int max_pacing_rate = 0;
|
||||
size_t total = 0;
|
||||
uint64_t total = 0;
|
||||
char *host = NULL;
|
||||
int fd, c, on = 1;
|
||||
char *buffer;
|
||||
@@ -473,12 +473,12 @@ int main(int argc, char *argv[])
|
||||
zflg = 0;
|
||||
}
|
||||
while (total < FILE_SZ) {
|
||||
ssize_t wr = FILE_SZ - total;
|
||||
int64_t wr = FILE_SZ - total;
|
||||
|
||||
if (wr > chunk_size)
|
||||
wr = chunk_size;
|
||||
/* Note : we just want to fill the pipe with 0 bytes */
|
||||
wr = send(fd, buffer, wr, zflg ? MSG_ZEROCOPY : 0);
|
||||
wr = send(fd, buffer, (size_t)wr, zflg ? MSG_ZEROCOPY : 0);
|
||||
if (wr <= 0)
|
||||
break;
|
||||
total += wr;
|
||||
|
Reference in New Issue
Block a user