Branch: refs/heads/master
Home:
https://github.com/jpirko/libteam
Commit: c3441566c5fffcd7b7c53d32f594b84e4cb4e5ad
https://github.com/jpirko/libteam/commit/c3441566c5fffcd7b7c53d32f594b84e...
Author: Flavio Leitner <fbl(a)redhat.com>
Date: 2013-07-02 (Tue, 02 Jul 2013)
Changed paths:
M man/teamd.conf.5
M teamd/teamd_bpf_chef.c
M teamd/teamd_bpf_chef.h
M teamd/teamd_hash_func.c
Log Message:
-----------
teamd: improved TX hashing code to handle L4 and vlan headers
The code tries to avoid as much as possible to use BPF
scratch memory areas, do maths or move data due to
performance reasons. Also, it's not possible to jump back.
The packet information is implict on the each branch taken.
The BPF code is quite long if all protocols are enabled, but
that shouldn't be a problem because the largest jump offset
~120 (goto vlan branch) is not close to socket_filter->k limit
of 256, it is expense as much as a jump to the next instruction
and the CPU should always take the shortest and quick path
possible for any scenario.
Signed-off-by: Flavio Leitner <fbl(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>