AltraMayor / AltraMayor/gatekeeper

Minimizing endian computation

オープン
#125 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement good first issue
主要言語
C
スター
1.6k
フォーク
252
PR マージ指標
30日以内にマージされた PR はありません

説明

When `rte_be_to_cpu_16()` and its sister functions are called over a constant, they compute their results in compile time, that is, the results are also constants. This enables Gatekeeper to avoid some runtime calls to `rte_be_to_cpu_16()` and its sister functions. For example, in `process_single_packet()` in file `ggu/main.c`, one can rename variable `ether_type` to `ether_type_be`, and adjust the `case`s of the `switch` as in `case rte_cpu_to_be_16(ETHER_TYPE_IPv4):` to make the endian computations in compile time instead of runtime.

In order to completely address this issue, one has to identify all locations at which similar changes can be made. These locations may even include variables other than Ethernet types.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。