On Thu, Jan 23, 2025 at 09:59:36AM +0800, D. Wythe wrote: > This patch aims to introduce BPF injection capabilities for SMC and > includes a self-test to ensure code stability. > > Since the SMC protocol isn't ideal for every situation, especially > short-lived ones, most applications can't guarantee the absence of > such scenarios. Consequently, applications may need specific strategies > to decide whether to use SMC. For example, an application might limit SMC > usage to certain IP addresses or ports. > > To maintain the principle of transparent replacement, we want applications > to remain unaffected even if they need specific SMC strategies. In other > words, they should not require recompilation of their code. > > Additionally, we need to ensure the scalability of strategy implementation. > While using socket options or sysctl might be straightforward, it could > complicate future expansions. > > Fortunately, BPF addresses these concerns effectively. Users can write > their own strategies in eBPF to determine whether to use SMC, and they can > easily modify those strategies in the future. Hi smc folks, @Wenjia @Ian Is there any feedback regarding this patches ? This series of code has gone through multiple rounds of community reviews. However, the parts related to SMC, including the new sysctl and ops name, really needs your input and acknowledgment. Additionally, this series includes a bug fix for SMC, which is easily reproducible in the BPF CI tests. Thanks, D. Wythe