how to optimize switch buffer settings