Add XOR instruction fo BPF machine. Needed for computing packet hashes.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
 #define SKF_AD_HATYPE  28
 #define SKF_AD_RXHASH  32
 #define SKF_AD_CPU     36
-#define SKF_AD_MAX     40
+#define SKF_AD_ALU_XOR_X       40
+#define SKF_AD_MAX     44
 #define SKF_NET_OFF   (-0x100000)
 #define SKF_LL_OFF    (-0x200000)
 
        BPF_S_ANC_HATYPE,
        BPF_S_ANC_RXHASH,
        BPF_S_ANC_CPU,
+       BPF_S_ANC_ALU_XOR_X,
 };
 
 #endif /* __KERNEL__ */
 
                case BPF_S_ANC_CPU:
                        A = raw_smp_processor_id();
                        continue;
+               case BPF_S_ANC_ALU_XOR_X:
+                       A ^= X;
+                       continue;
                case BPF_S_ANC_NLATTR: {
                        struct nlattr *nla;
 
                        ANCILLARY(HATYPE);
                        ANCILLARY(RXHASH);
                        ANCILLARY(CPU);
+                       ANCILLARY(ALU_XOR_X);
                        }
                }
                ftest->code = code;