Skip to content

Commit

Permalink
net: dsa: vsc73xx: implement FDB operations
Browse files Browse the repository at this point in the history
This commit introduces implementations of three functions:
.port_fdb_dump
.port_fdb_add
.port_fdb_del

The FDB database organization is the same as in other old Vitesse chips:
It has 2048 rows and 4 columns (buckets). The row index is calculated by
the hash function 'vsc73xx_calc_hash' and the FDB entry must be placed
exactly into row[hash]. The chip selects the bucket number by itself.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Link: https://patch.msgid.link/20240827123938.582789-1-paweldembicki@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
  • Loading branch information
Pawel Dembicki authored and Paolo Abeni committed Sep 3, 2024
1 parent da4f3b7 commit 075e3d3
Show file tree
Hide file tree
Showing 2 changed files with 357 additions and 0 deletions.
Loading

0 comments on commit 075e3d3

Please sign in to comment.