Ignore:
Timestamp:
01/13/17 14:27:15 (4 years ago)
Author:
Richard Sanger <rsanger@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
174b3c7
Parents:
d31b952
Message:

Makes a couple of modifications to the DPDK RSS hash key patch

  • Ensure CUSTOM_HASHER still returns -1 to libtrace
  • Rework to allow any size of hash
  • Rework to malloc the key I'm not 100% convinced DPDK does not hold on to the reference.
  • Also fixes a bug in the fallback libtrace hasher handling. Which was always sending packets to the same thread.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/hash_toeplitz.h

    ree6e802 r6f7cd4b  
    5858void toeplitz_init_config(toeplitz_conf_t *conf, bool bidirectional);
    5959uint64_t toeplitz_hash_packet(const libtrace_packet_t * pkt, const toeplitz_conf_t *cnf);
     60void toeplitz_ncreate_bikey(uint8_t *key, size_t num);
    6061void toeplitz_create_bikey(uint8_t *key);
     62void toeplitz_ncreate_unikey(uint8_t *key, size_t num);
    6163void toeplitz_create_unikey(uint8_t *key);
    6264
Note: See TracChangeset for help on using the changeset viewer.