Mellanox / libxlio

Other
45 stars 21 forks source link

issue: 4023262 Handle down interface states during table update #215

Closed BasharRadya closed 3 weeks ago

BasharRadya commented 3 months ago

In this commit, we address a scenario where more than one network interface is assigned the same IP address. The current implementation supports creating RX rules for only one interface per IP address, which can lead to issues if multiple interfaces share the same IP.

Key Changes:

Added a mechanism to detect when the same IP address is assigned to multiple interfaces. If this conflict occurs, a warning message is printed to notify the user that this configuration is not supported. When faced with this conflict, the implementation now prioritizes the interface that is in the "Up" state, assigning the RX rules to it. This change helps prevent potential conflicts and ensures that the most relevant (active) interface is used when an IP address conflict occurs.

Change type

What kind of change does this PR introduce?

Check list

BasharRadya commented 3 months ago

bot:retest

BasharRadya commented 2 months ago

bot:retest

BasharRadya commented 2 months ago

bot:retest