Skip to content

Commit

Permalink
net: Get rid of compat defines in psock_fanout.c selftest.
Browse files Browse the repository at this point in the history
Reported-by: Daniel Baluta <dbaluta@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 19, 2013
1 parent 9471244 commit b44540e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tools/testing/selftests/net-afpacket/psock_fanout.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,6 @@
#include <sys/types.h>
#include <unistd.h>

/* Hack: build even if local includes are old */
#ifndef PACKET_FANOUT
#define PACKET_FANOUT 18
#define PACKET_FANOUT_HASH 0
#define PACKET_FANOUT_LB 1
#define PACKET_FANOUT_CPU 2
#define PACKET_FANOUT_FLAG_DEFRAG 0x8000

#ifndef PACKET_FANOUT_ROLLOVER
#define PACKET_FANOUT_ROLLOVER 3
#endif

#ifndef PACKET_FANOUT_FLAG_ROLLOVER
#define PACKET_FANOUT_FLAG_ROLLOVER 0x1000
#endif

#endif

#define DATA_LEN 100
#define DATA_CHAR 'a'

Expand Down

0 comments on commit b44540e

Please sign in to comment.